Would this help: PythonPath "['/home/user/projects', '/home/user/projects/myproject'] + sys.path"
Bojan On Sep 25, 6:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to deploy my django project, but when I go to any urls of > the project I get this error: > > Mod_python error: "PythonHandler django.core.handlers.modpython" > > Traceback (most recent call last): > > File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line > 299, in HandlerDispatch > result = object(req) > > File "/usr/lib/python2.4/site-packages/django/core/handlers/ > modpython.py", line 222, in handler > return ModPythonHandler()(req) > > File "/usr/lib/python2.4/site-packages/django/core/handlers/ > modpython.py", line 195, in __call__ > response = self.get_response(request) > > File "/usr/lib/python2.4/site-packages/django/core/handlers/ > base.py", line 128, in get_response > return self.handle_uncaught_exception(request, resolver, exc_info) > > File "/usr/lib/python2.4/site-packages/django/core/handlers/ > base.py", line 159, in handle_uncaught_exception > callback, param_dict = resolver.resolve500() > > File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", > line 217, in resolve500 > return self._resolve_special('500') > > File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", > line 206, in _resolve_special > callback = getattr(self.urlconf_module, 'handler%s' % view_type) > > File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", > line 197, in _get_urlconf_module > self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) > > File "/home/user/projects/myproject/../myproject/urls.py", line 5, > in ? > admin.autodiscover() > > File "/usr/lib/python2.4/site-packages/django/contrib/admin/ > __init__.py", line 40, in autodiscover > __import__("%s.admin" % app) > > File "/home/user/projects/myproject/../myproject/news/admin.py", > line 2, in ? > from myproject.news.models import Logo > > File "/home/user/projects/myproject/../myproject/news/models.py", > line 3, in ? > from tags.models import Tag > > ImportError: No module named tags.models > > The following is my Location section of httpd.conf: > > <Location "/"> > SetHandler python-program > PythonPath "['/home/user/projects'] + sys.path" > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE myproject.settings > PythonDebug On > </Location> > > My project exists in: /home/user/projects/myproject > > Any help would be much appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---