Hi,

I'm at the final stage in one of my django developments, and am trying
to get my site live.

I've been following instructions on
http://www.jeffbaier.com/2007/07/26/installing-django-on-an-ubuntu-linux-server/
but got the following error:

  File "/usr/lib/python2.5/site-packages/django/conf/__init__.py",
line 94, in __init__
    raise ImportError, "Could not import settings '%s' (Is it on
sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE,
e)

ImportError: Could not import settings 'kazbah.settings' (Is it on
sys.path? Does it have syntax errors?): No module named
kazbah.settings


My ubuntu username is git, and the site I've made (kazbah) is at /home/
git/DjangoProjects/kazbah
My httpd.conf settings look like this:

<Location "/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE kazbah.settings
    PythonDebug On
    PythonPath "['/home/git/DjangoProjects'] + sys.path"
</Location>

<Location "/admin_media">
    SetHandler None
</Location>

<Location "/site_media">
    SetHandler None
</Location>

<Locationmatch "\.(jpg|gif|png)$">
    SetHandler None
</Locationmatch>


Any ideas about why my settings can't be found?
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to