Hi,

I've used Django a fair bit and have just installed it on a ubuntu-
based distro.  I've got everything working fine with apache2 and
mod_python but the admin css,

I have a soft link at /var/www/admin_media ponting to the admin media
folder and going to something like:

http://localhost/admin_media/img/admin/down_arrow.gif

shows the image fine in the browser - but the admin interface has no
css or images - except, weirdly on the logout page.

both the logout page and any other admin page have exactly the same
reference to the CSS:

login (not styled):

<link rel="stylesheet" type="text/css" href="/admin_media/css/
login.css" />

logout (styled fine):
<link rel="stylesheet" type="text/css" href="/admin_media/css/
base.css" />

I've deleted and redone the soft link a couple of times and tried
trailing slashes in the apache2.conf declarations (below for
reference) and it's made no difference.

Please help!

Cheers,
Cole

#### APACHE SETTINGS
MaxRequestsPerChild 1
<location "/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE blog.settings
    PythonPath "['/home/cole/web-dev/django_projects'] + sys.path"
</location>

<location "/media/">
    SetHandler None
</location>

<location "/admin_media/">
    SetHandler None
</location>

<locationmatch "\.(jpg|gif|png)$">
    SetHandler None
</locationmatch>
--~--~---------~--~----~------------~-------~--~----~
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