Hi all,

I am running Apache in linux. I need to deploy my django app to it, so
i installed mod_python and configured the apache according to it. Then
I got an annoying error at the first page, that I couldn't figure out.
Please suggest a solution.

The error is:

ImportError at /gpa
No module named urls

Request Method:         GET
Request URL:    http://localhost/gpac/gpa
Django Version:         1.2.5
Exception Type:         ImportError
Exception Value:

No module named urls

Exception Location:     /usr/lib/pymodules/python2.7/django/utils/
importlib.py in import_module, line 35
Python Executable:      /usr/bin/python
Python Version:         2.7.1
Python Path:    ['/home/saki/', '/var/www', '/usr/lib/pymodules/
python2.7', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/
usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/
python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/
usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/
PIL', '/usr/lib/pymodules/python2.7/gtk-2.0', '/usr/lib/python2.7/dist-
packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0']

My apache conf file:

LoadModule python_module /usr/lib/apache2/modules/mod_python.so

<Location "/gpac/">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE gpc.settings
        PythonOption django.root /gpac
        PythonPath "['/home/saki/','/var/www']+sys.path"
        PythonDebug On
</Location>

gpc is the name of the app( directory containing all the source files
of the app.)

Please help

Thank you :)

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