Opened 9 years ago

Closed 9 years ago

#6335 closed (wontfix)

The static file serving documentation misses to add a windows specific information.

Reported by: Shabda <shabda.raaj@…> Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The documentation at mentions the steps to serve static files using Django, which basically is to add this line to,
(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.

Change History (1)

comment:1 Changed 9 years ago by Chris Beaven

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top