Dear group,

sorry for starting another thread on this issue. I am both new to Python and 
Django. -

I have been trying for two days now to transfer a little sample project from 
the development server to Apache (2.0.54) with mod_python (3.2.8) on OpenSuSE 
10.0; following exactly(?) the documentation given (and looking through the 
related posts in the archieves - to no avail).

My httpd.conf contains a section like this:
<Location "/gunnarsseite/">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        PythonPath "['/home/gunnar/EigeneDateien/Linux/Django'] + sys.path"
        SetEnv DJANGO_SETTINGS_MODULE gunnarsseite.settings
        PythonDebug On
</Location>

My project's files live in the 'gunnarsseite' subdirectory of the 'Django' dir 
above. (Playing around with my models after running python manage.py shell 
does work. Playing around when running the python shell directly doesn't.)

Whenever I try to load my project in the browser, 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 157, in handler
    return ModPythonHandler()(req)
  File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", 
line 116, in __call__
    from django.conf import settings
  File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 68, 
in ?
    settings = Settings(settings_module)
  File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 30, in 
__init__
    raise EnvironmentError, "Could not import settings '%s' (is it on 
sys.path?): %s" % (self.SETTINGS_MODULE, e)
EnvironmentError: Could not import settings 'gunnarsseite.settings' (is it on 
sys.path?): No module named gunnarsseite.settings

Reloading at times also gives me 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 157, in handler
    return ModPythonHandler()(req)
  File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", 
line 116, in __call__
    from django.conf import settings
  File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 11, 
in ?
    from django.conf import global_settings
ImportError: cannot import name global_settings

What am I missing here? Any help would be appreciated. Greetings from 
Frankfurt,

Gunnar :)

P.S.: Let me add that I am fascinated by the ease of learning Django!

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to