Hi Im an trying to deploy my django app to an apache server. However i
keep getting a 500 internal server error.

i have followed this guide:
http://fosswire.com/2008/05/19/installing-mod_python-and-django-on-apache/

in my httpd.conf file i have written the following:
<Location /normskema>
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE normskema.settings
SetEnv PYTHON_EGG_CACHE "/var/cache/www/pythoneggs"
PythonDebug Off
PythonOption django.root /normskema
PythonPath "['/var/www/djangoapps'] + sys.path”
</Location>


in my httpd error_log file it shows the following:

[Fri Sep 05 15:16:14 2008] [error] [client 10.45.1.140] PythonHandler
django.core.handlers.modpython: Traceback (most recent call last):
[Fri Sep 05 15:16:14 2008] [error] [client 10.45.1.140] PythonHandler
django.core.handlers.modpython:   File "/usr/lib/python2.4/site-
packages/mod_python/a$
[Fri Sep 05 15:16:14 2008] [error] [client 10.45.1.140] PythonHandler
django.core.handlers.modpython:   File "<string>", line 1
[Fri Sep 05 15:16:14 2008] [error] [client 10.45.1.140] PythonHandler
django.core.handlers.modpython:     ['/var/www/djangoapps'] + sys.path
\xe2\x80\x9d
[Fri Sep 05 15:16:14 2008] [error] [client 10.45.1.140] PythonHandler
django.core.handlers.modpython:
^
[Fri Sep 05 15:16:14 2008] [error] [client 10.45.1.140] PythonHandler
django.core.handlers.modpython: SyntaxError: invalid syntax
[Fri Sep 05 15:16:15 2008] [error] [client 10.45.1.140] PythonHandler
django.core.handlers.modpython: Traceback (most recent call last):
[Fri Sep 05 15:16:15 2008] [error] [client 10.45.1.140] PythonHandler
django.core.handlers.modpython:   File "/usr/lib/python2.4/site-
packages/mod_python/a$
[Fri Sep 05 15:16:15 2008] [error] [client 10.45.1.140] PythonHandler
django.core.handlers.modpython:   File "<string>", line 1
[Fri Sep 05 15:16:15 2008] [error] [client 10.45.1.140] PythonHandler
django.core.handlers.modpython:     ['/var/www/djangoapps'] + sys.path
\xe2\x80\x9d
[Fri Sep 05 15:16:15 2008] [error] [client 10.45.1.140] PythonHandler
django.core.handlers.modpython:
^
[Fri Sep 05 15:16:15 2008] [error] [client 10.45.1.140] PythonHandler
django.core.handlers.modpython: SyntaxError: invalid syntax


I am not that good at apache and i really have no idea what is wrong.
am i missing something in the httpd.conf file?? because it sure does
seem like my request from the other computer "reaches" the apache
server...?

hope you can help :-)

kind regards

Peter Møller
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to