Saturday, April 30, 2011

django uwsgi

I am trying to deploy a django project with nginx and uwsgi. I think I
have it all set up right but when I hit the site I get the following
error:

No module named project.urls

I know everything else is working because I still have debug on and
can see that settings.py is being read.
I know I'm forgetting something stupid but I can't figure it out so
any help appreciated.

Here is the wsgi.py file I am running:

import os
import sys

from os.path import abspath, dirname, join
from site import addsitedir

PROJECT_ROOT = abspath(dirname(__file__))

addsitedir(PROJECT_ROOT)
os.environ['DJANGO_SETTINGS_MODULE']='settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment