#10213 closed (fixed)
Static Files doc improvement
Description ¶
On the following page: http://docs.djangoproject.com/en/dev/howto/static-files/
If you follow the directions and use /media/ as the path to serve static files under you'll get the error:
"Permission denied: /var/lib/python-support/python2.5/django/contrib/admin/media/"
Which is because "/media/" is also being used for settings.ADMIN_MEDIA_PREFIX. A few first timers have run into this and gotten stuck so it's probably worth noting in the docs.
My suggestion would be a one liner at the end of the "How to do it" section stating "Be careful not to use the same path as your ADMIN_MEDIA_PREFIX (which defaults to /media/) as this will overwrite your URLconf entry.".
Change History (6)
comment:1 by , 16 years ago
milestone: | → 1.1 |
---|---|
Triage Stage: | Unreviewed → Accepted |
by , 16 years ago
Attachment: | static-files.patch added |
---|
comment:2 by , 16 years ago
Cc: | added |
---|---|
Has patch: | set |
Keywords: | pycamp2009 added |
comment:3 by , 16 years ago
Keywords: | kkmegapatch added |
---|---|
Owner: | changed from | to
On-liner added