Code

Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#10213 closed (fixed)

Static Files doc improvement

Reported by: preds Owned by: kkubasik
Component: Documentation Version: 1.0
Severity: Keywords: pycamp2009 kkmegapatch
Cc: humitos Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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.".

Attachments (1)

static-files.patch (544 bytes) - added by humitos 5 years ago.
On-liner added

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 years ago by jacob

  • milestone set to 1.1
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Changed 5 years ago by humitos

On-liner added

comment:2 Changed 5 years ago by humitos

  • Cc humitos added
  • Has patch set
  • Keywords pycamp2009 added

comment:3 Changed 5 years ago by kkubasik

  • Keywords kkmegapatch added
  • Owner changed from nobody to kkubasik

comment:4 Changed 5 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

Fixed by [10303].

comment:5 Changed 3 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.