admin won't load revisited
I am running Django 1.2.4 and mod_wsgi. My application is running
fine.
My admin won't load correctly.
wsgi_handler.py
-----------------------
import os
import sys
PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
sys.path.append(PROJECT_ROOT)
sys.path.append(os.path.join('/home/amr/django'))
sys.path.append(os.path.join('/home/amr/django/amr'))
sys.path.append(os.path.join('/home/amr/bin'))
sys.path.append(os.path.join('/usr/local/www/documents/media'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'amr.settings'
os.environ['PYTHON_EGG_CACHE'] = '/python_egg_cache'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
httpd.conf
--------------
Listen 8002
<VirtualHost _default_:8002>
DocumentRoot /usr/local/www/documents
<Directory /usr/local/www/documents>
Order allow,deny
Allow from all
</Directory>
Alias /media/ /usr/local/www/documents/media/
<Directory /usr/local/www/documents/media>
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias / /usr/local/www/wsgi-scripts/wsgi_handler.py
<Directory /usr/local/www/wsgi-scripts>
Order allow,deny
Allow from all
</Directory>
#
</VirtualHost>
This link exists in /usr/local/www/documents/media
media -> /usr/local/lib/python2.6/site-packages/django/contrib/admin/
media
according to the documentation.
I'm missing something, and just cannot see it. Pointers in fixing this
would be appreciated.
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home