Opened 13 years ago

Closed 13 years ago

#17610 closed Bug (needsinfo)

Admin CSS not loading

Reported by: alectaylor6@… Owned by: nobody
Component: Template system Version: 1.4-alpha-1
Severity: Normal Keywords: css, admin, static, admin_media_prefix, media_prefix
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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 my that \static\admin\ folder as a subdirectory of my regular static directory.

So I grep'd all the files in my project and virtualenv directories, looking for "base.css". Wherever I found it, I replaced whatever was next to it with /static/admin/ (except the tuples).

After all this, the admin page is still loading with: <link rel="stylesheet" type="text/css" href="admin/css/base.css" />

Can you please fix the admin CSS loading, or tell me how to *actually* change the ADMIN_MEDIA_PREFIX?

Thanks

Change History (1)

comment:1 by anonymous, 13 years ago

Resolution: needsinfo
Status: newclosed

Can you tell us if you are using the Djngo development server or any integration with some web server (e.g. Apache); also, what platform are you using (it seems it is Windows)?

Ideally, it would be great if you can post an abridged version of your project, e.g. only one applition with one model and your settings.py, urls.py, admin.py models.py such that the wrong behavior you describe is still present.

Note: See TracTickets for help on using tickets.
Back to Top