Changeset 3952
- Timestamp:
- 10/30/06 14:52:02 (2 years ago)
- Files:
-
- django/trunk/docs/static_files.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/static_files.txt
r2809 r3952 32 32 Just put this in your URLconf_:: 33 33 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'}), 35 35 36 36 ...where ``site_media`` is the URL where your media will be rooted, and … … 61 61 Example:: 62 62 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}), 64 64 65 65 You can customize the index view by creating a template called
