If ADMIN_MEDIA_PREFIX is not assigned, things don't work...documentation should be updated
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I just spent about 45 minutes trying to get the instructions here to work: http://docs.djangoproject.com/en/dev/howto/static-files/
Turns out, the only reason they didn't work was because I didn't have anything set for ADMIN_MEDIA_PREFIX. I don't think I ever deleted this from my settings file...I might have, I don't know, but by adding:
ADMIN_MEDIA_PREFIX = "/path/to/wherever/that/does/not/even/exist/"
I was able to get everything to work. Just by putting a value in there. I am new to django, but if the documentation said this, it would make life much easier. It does warn about having ADMIN_MEDIA_PREFIX be the same as another value, so adding this kind of warning makes sense to me, at least in theory.
Change History (5)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|
|Status:||new → closed|