Django

Code

Ticket #474 (closed: fixed)

Opened 3 years ago

Last modified 2 years ago

Better method of serving admin media files needed

Reported by: Alex Payne <al3x@al3x.net> Assigned to: adrian
Milestone: Component: Documentation
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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.

Attachments

Change History

09/12/05 22:24:19 changed by adrian

Which docs need to be updated?

10/20/05 18:18:51 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

10/20/05 18:23:32 changed 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.

03/01/07 05:13:23 changed by Charlax <ca.dein@free.fr>

  • status changed from closed to reopened.
  • resolution deleted.

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

03/04/07 23:10:31 changed by Michael Radziej <mir@noris.de>

  • component changed from Admin interface to Documentation.

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

03/12/07 07:23:53 changed by mtredinnick

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

03/12/07 07:25:11 changed by mtredinnick

  • status changed from reopened to closed.
  • resolution set to fixed.

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.


Add/Change #474 (Better method of serving admin media files needed)




Change Properties
Action