Opened 19 years ago

Closed 18 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: no UI/UX: no

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 by Adrian Holovaty, 19 years ago

Which docs need to be updated?

comment:2 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

comment:3 by hugo, 19 years ago

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 by Charlax <ca.dein@…>, 18 years ago

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 by Michael Radziej <mir@…>, 18 years ago

Component: Admin interfaceDocumentation

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

comment:6 by Malcolm Tredinnick, 18 years ago

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

comment:7 by Malcolm Tredinnick, 18 years ago

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