Opened 19 years ago
Closed 18 years ago
#474 closed defect (fixed)
Better method of serving admin media files needed
Reported by: | 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 , 19 years ago
comment:2 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 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 , 18 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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 , 18 years ago
Component: | Admin interface → Documentation |
---|
What documentation are you talking about? docs/static_files.txt?
comment:6 by , 18 years ago
comment:7 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
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.
Which docs need to be updated?