Django

Code

Changeset 3952

Show
Ignore:
Timestamp:
10/30/06 14:52:02 (2 years ago)
Author:
adrian
Message:

Fixed #2963 -- Fixed bug in docs/static_files.txt. Thanks, Collin Grady

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/static_files.txt

    r2809 r3952  
    3232Just put this in your URLconf_:: 
    3333 
    34     (r'^site_media/(.*)$', 'django.views.static.serve', {'document_root': '/path/to/media'}), 
     34    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/path/to/media'}), 
    3535 
    3636...where ``site_media`` is the URL where your media will be rooted, and 
     
    6161Example:: 
    6262 
    63     (r'^site_media/(.*)$', 'django.views.static.serve', {'document_root': '/path/to/media', 'show_indexes': True}), 
     63    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/path/to/media', 'show_indexes': True}), 
    6464 
    6565You can customize the index view by creating a template called