home / django_tickets / tickets

tickets: 8336

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
8336 2008-08-15 07:07:48 2009-07-17 16:28:38 2022-03-06 03:41:58.967262 Design decision needed closed django-admin.py runserver     dev wontfix runserver option for disabling admin static files serving Okay, it's handy not to worry about admin media files static serving, when running simple dev server.. But if you want to do something special with admin media files, like not touching the original ones in `django.contrib.admin` and add some of your own, like we do with very simple static serving view (serve from one dir and fallback to another), you must set `ADMIN_MEDIA_PREFIX = 'http://localhost:8000'`, which is not very portable solution, or symlink files from various dirs and let runserver serve admin static files from there. If people have in their urls.py something for static media serving when `DEBUG == True` - why not to have there the same for admin? I'll attach patch that adds an option for runserver management command which gives you the chance just to disable builtin magical serving. nobody jakub_vysoky admin media runserver 0 1 0 0 0 0
Powered by Datasette · Queries took 109.677ms