Opened 11 years ago

Closed 10 years ago

#474 closed defect (fixed)

Better method of serving admin media files needed

Reported by: Alex Payne <al3x@…> Owned by: Adrian Holovaty
Component: Documentation Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Having to manually copy the media (stylesheets, images, javascripts) used by the admin interface into one's static media directory is broken. Those hand-copied media files are quickly going to get out of sync with the latest versions from svn. Even symlinking those files into the media directory would be a better solution, and if that's the best we can do, the docs should be updated to reflect it.

Change History (7)

comment:1 Changed 11 years ago by Adrian Holovaty

Which docs need to be updated?

comment:2 Changed 11 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

comment:3 Changed 11 years ago by hugo

Just a hint: you can directly checkout the admin media files to your public_html or whatever the place is. That way they can be served by the webserver and won't go out of sync, at least getting in sync is easy.

comment:4 Changed 10 years ago by Charlax <ca.dein@…>

Resolution: fixed
Status: closedreopened

It would be somewhat useful, however, to avoid such manipulations...

Here is mine :

sites_available/default :

Alias /admin_media /var/django/project/admin_media
<Location "/admin_media/">

SetHandler None

</Location>

and in settings :

ADMIN_MEDIA_PREFIX = '/admin_media/'

and :

ln -s /usr/lib/python2.4/site-packages/django/contrib/admin/media django/project/admin_media

comment:5 Changed 10 years ago by Michael Radziej <mir@…>

Component: Admin interfaceDocumentation

What documentation are you talking about? docs/static_files.txt?

comment:6 Changed 10 years ago by Malcolm Tredinnick

(In [4710]) Added a note about serving admin media to the alternative server setup
instructions. Refs #474.

comment:7 Changed 10 years ago by Malcolm Tredinnick

Resolution: fixed
Status: reopenedclosed

The modpython.txt documentation mentions both symlinking and copying of the admin media files as possibilities. I've updated the fastcgi docs to refer to the same section. We don't want to be in the game of giving step-by-step server configuration instructions, since they are too varied and long. I think what we have is enough to provide people with a start and the right words for them to seek out other documentation of a more specialised nature if they require that.

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