use staticfiles to serve admin media

RESOLVED FIXED in 1.3

Status

Webtools
Elmo
P2
normal
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: Pike, Assigned: Pike)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

7 years ago
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/"

Updated

7 years ago
Assignee: nobody → l10n
Priority: -- → P2
(Assignee)

Comment 1

7 years ago
Created attachment 551525 [details] [diff] [review]
ADMIN_MEDIA_PREFIX = '/static/admin/'
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+
(Assignee)

Comment 3

7 years ago
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
Last Resolved: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.3
You need to log in before you can comment on or make changes to this bug.