1๐
I ran into the same error (Exception Value: No module named urls
), but in my case it was when trying to deploy my Django app under Apache with mod_wsgi. The app ran fine with python manage.py runserver
. It turned out that my urls.py file was not readable by the user that Apache was running as. So, you might want to check the permissions on urls.py to make sure that it is readable by the same user you are logged in as when you run python manage.py runserver
. One way to do this would be to run the command ls -l
which will show the file owner and file permissions. If that turns out to be the problem, then have the owner of the file (or the root user) run the command chmod a+r urls.py
.
By the way, the contents of the files you posted look just fine. It is pretty much the same as what I had except that our project names are different.