On Sun, Jan 3, 2010 at 7:33 PM, Sergio Lobo <spcl...@gmail.com> wrote: > Hi! > > I am having a problem to configure mod_python for my Django project. I > even created a new project and the problem remains. Below is the > relevant part of my http.conf and the error message I get. From what I > understand mod_python is not finding my dummy.settings. Any help will > be greatly appreciated. > > <Location "/"> > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE dummy.settings > > [...] > > File "/usr/lib/python2.5/site-packages/django/conf/__init__.py", > line 75, 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 'dummy.settings' (Is it on > sys.path? Does it have syntax errors?): No module named dummy >
Seems like there is a __init_.py file missing in your dummy directory? -- Ramiro Morales | http://rmorales.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.