Opened 17 years ago
Closed 17 years ago
#6335 closed (wontfix)
The static file serving documentation misses to add a windows specific information.
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The documentation at http://www.djangoproject.com/documentation/static_files/ mentions the steps to serve static files using Django, which basically is to add this line to urls.py,
(r'site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/path/to/media'}),
On windows this might be something like (r'site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'F:/djangoprojects/wiki/templates/site_media'}),
Now here we needed to use forward slashes on Windows as well. This should be pointed out in the documentation.
You don't have to use forward slashes. Backslashes (properly escaped) work fine too. I'll call it and say this addition isn't necessary.