2
1

If I switch to the Django Style admin interface in the administration area, the UI appears without styles applied.

Checking the HTTP traffic, I'm getting 404 responses on the following resources

  • /admin_media/css/forms.css
  • /admin_media/css/changelists.css
  • /admin_media/css/base.css

Does this work for anyone else, or have I broken something in the setup. I'm using Apache 2.2, mod_wsgi, ActivePython 2.6 on CentOS 5 (and everything else is working fine).

Snooping in the templates, it looks like these paths are specified very differently from others - are they meant to be served by Django itself, or do I need to mount them up via Apache? (apologies for the Django noobness).

(This is slightly annoying, as the standard administration view is less organised and is missing a few menu items)

asked 31 Aug '10, 04:35

Tim%20Whittington's gravatar image

Tim Whittington
1863811
accept rate: 25%

A quick Apache _Alias /admin_media fixes this, but is that the 'right' solution?

(31 Aug '10, 04:40) Tim Whittington

Yeah, the alias is the correct solution. The admin media is part of the django installation. See this question, and for example this section in the django manual. We'll probably bundle that stuff with OSQA and make it part of the OSQA installation process, once we have something like a stable release.

link

answered 31 Aug '10, 05:46

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

I confirm

I also resolved the same issue adding Alias directive in my Apache osqa.conf file pointing to python folder containing CSS and images

Alias /admin_media/ /opt/ActivePython-2.7/lib/python2.7/site-packages/django/contrib/admin/media/
    <Directory /opt/ActivePython-2.7/lib/python2.7/site-packages/django/contrib/admin/media>
            Order allow,deny
            Allow from all
    </Directory>
link

answered 08 Feb, 13:58

bosch's gravatar image

bosch
196512
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×18
×9

Asked: 31 Aug '10, 04:35

Seen: 874 times

Last updated: 09 Feb, 19:41

powered by OSQA