(I am using django 0.95 revision 3549 with Apache 2.0.54 and mod_python
and a virtualHost.)
When I first brought up the django admin interface, the login screen
and subsequent pages had no stylesheets applied. I did a quick search
and realized that I needed to configure Apache for the admin media
files. I added the following lines in the VirtualHost directive:
Alias /media "/home/user/django_src/django/contrib/admin/media"
<Directory /home/user/django_src/django/contrib/admin/media>
Order allow,deny
Allow from all
</Directory>
RewriteRule ^/media$ /media/ [R]
<Location "/media/">
SetHandler None
</Location>
I thought that fixed the problem as the login and first admin page now
have style ; >) However, the other pages below that do not. The browser
reports that the /media/css/changelistst.css file is not found. When I
check Apache's logs, I see the error "File does not exist:
/home/user/django_src/django/contrib/admin/media/css/null". I get the
same error if I try to access the .css file through the URL directly
(baseURL/media/css/changelists.css). Additionally, I see an error page
404 from django. It appears to me that, in some instances, mod_python
(django) is handling the directory even though I have SetHandler None.
Suggestions?
Thanks!
Don
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---