1

I am receiving the error:

ImportError at /
No module named Interest.urls

even though my settings file has been changed several times:

ROOT_URLCONF = 'urls'

or ROOT_URLCONF = 'interest.urls'

I keep getting the same error, as if it doesn't matter what I put in my settings file, it is still looking for Interest.urls, even though my urls file is located at Interest(django project)/interest/urls.py

I have restarted my nginx server several times and it changes nothing, is there another place I should be looking to change where it looks for my urls file?

Thanks!

1
  • Do you get the same error running the development server? Commented Jul 4, 2013 at 19:47

2 Answers 2

1

I had to restart my supervisorctl, which restarted the gunicorn server which was actually handling the django files

Sign up to request clarification or add additional context in comments.

Comments

0

There's not need to restart nginx, you can do these steps:

  1. Install fabric (pip install fabric)
  2. Create a "restart" function into fabfile.py that has the following:

    def restart(): sudo('kill -9 `ps -ef | grep -m 1 \'[y]our_project_name\' | awk \'{print $2}\'`')

  3. Call the function through:

    $ fab restart

  4. Optional, you might want to add the command into a script with your password just adding "-p mypass" to fabric command

That will kill all your gunicorn processes allowing supervisord to start them again.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.