Closed Bug 677007 Opened 13 years ago Closed 13 years ago

use staticfiles to serve admin media

Categories

(Webtools Graveyard :: Elmo, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Pike, Assigned: Pike)

Details

Attachments

(1 file)

Right now, the admin CSS/JS doesn't load locally. The recommended way to go about it is to use staticfiles to serve it, which seems to work already, we just need to set ADMIN_MEDIA_PREFIX to "/static/admin/"
Assignee: nobody → l10n
Priority: -- → P2
Attachment #551525 - Flags: review?(peterbe)
Comment on attachment 551525 [details] [diff] [review]
ADMIN_MEDIA_PREFIX = '/static/admin/'

Review of attachment 551525 [details] [diff] [review]:
-----------------------------------------------------------------

Do we need to do anything to the apache sites? If so I'm perfectly happy to complete that so we don't need the django static serve.
Attachment #551525 - Flags: review?(peterbe) → review+
https://github.com/mozilla/elmo/commit/423723335d8036d7a83622f68e18dd50a296e352, FIXED.

Also, deployed on -dev-.

The only follow-up on the apache config side is that we can remove the admin-media Alias, which I already did for the -dev- config. When we cut the next release, we should do that for -stage-, too.

staticfiles already gathers the media files as is under collected/static/admin.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.3
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: