base.css 404ing on Django 1.4a1

97 views
Skip to first unread message

Alec Taylor

unread,
Feb 2, 2012, 12:26:47 PM2/2/12
to django...@googlegroups.com
Trunk version cannot load Admin CSS.

First I tried setting the ADMIN_MEDIA_PREFIX to MEDIA_PREFIX, when
that didn't work I tried manual replacing. Yes, I know it has been
depreciated and that the css are stored in
django\django\contrib\admin\static\admin\css, however it did not work
when omitted so I placed that \static\admin\ folder as a subdirectory
of my regular static directory.

ADMIN_MEDIA_PREFIX is now set to: '/static/admin/' in settings.py.

This partially worked, the top of my admin pages now look like this:
<link rel="stylesheet" type="text/css" href="admin/css/base.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/dashboard.css"/>

So dashboard.css is loading fine now, it's just base.css which isn't.

How should I go about getting that base.css link to not 404, or
*actually* changing that ADMIN_MEDIA_PREFIX?

Thanks for all suggestions,

Alec Taylor

swiharta

unread,
Apr 4, 2012, 9:13:00 PM4/4/12
to django...@googlegroups.com
I had to upgrade my version of django-staticfiles and do collectstatic. Hope that helps.

Alec Taylor

unread,
Apr 4, 2012, 10:40:48 PM4/4/12
to django...@googlegroups.com
Unknown command: 'collectstatic'

Note: I am running the latest official build of Django (1.4) with the
latest dev build of django-staticfiles.

Also of relevance:
> python manage.py help | grep -i "static"
satchmo_copy_static

(yes, I am running a satchmo shop)

> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/uT6xUVl_99gJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

Reply all
Reply to author
Forward
0 new messages