Thursday, June 24, 2010

Serving django admin files using mod_python

i have been playing with django using mod_python, so i activated the
admin for my application and instead of the pretty looking page, i
get :

Django administration

Welcome, ashtanga. Change password / Log out
Site administration

Auth
Groups Add Change
Users Add Change
Sites
Sites Add Change
Recent Actions

My Actions

None available

i know this has something to do with the static files, and iv read
several posts on it, but i cant find a solution for mod_python, this
is my httpd.conf for mod_python:

<Location "/ash">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE ash.settings
SetEnv PYTHON_EGG_CACHE /tmp
PythonOption django.root /ash
PythonDebug On
PythonPath "['/home/ashtanga/public_html/', '/home/ashtanga/
public_html/ash'] + sys.path"
</Location>

my project path is /home/ashtanga/public_html/ash

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment