#23705: mod_wsgi deployment documentation includes unncessary AliasMatch
--------------------------------------+--------------------
     Reporter:  kezabelle             |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Documentation         |    Version:  master
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 
[https://github.com/django/django/blob/1b2debe89684724f0617bb89aa49cb70273ab0f1/docs/howto/deployment/wsgi/modwsgi.txt#L136
 This line in the docs] appears to be a remnant of the time before
 staticfiles:
 {{{
 AliasMatch ^/([^/]*\.css) /path/to/mysite.com/static/styles/$1
 }}}
 which as far as I understand it, is to allow domain-root-relative CSS
 files to be point through to staticfiles `collectstatic` output.
 Off the top of my head, this seems like it would sidestep using `{% static
 "file.css" %}` (which would still work) and is not required in any
 sane/tidy configuration [and probably makes it harder to load those files
 in the dev server by virtue of needing another urlconf pattern].
 It additionally has the burden of implying that `static/styles` exists, or
 is the only place CSS files could reside [the `static/styles` path is
 *only* mentioned in that AliasMatch]

 It looks like the commit that introduced it was
 9fd19c01611e5ed1ed64bbeb462ab96499d72a6c, in the 1.1 days. Two tickets
 have existed: #13912 and #11229, also both back in the pre-staticfiles
 days. It appears to have just been carried forward across renames
 accidentally, IMHO, and I can't think of a great reason for it being
 there.

--
Ticket URL: <https://code.djangoproject.com/ticket/23705>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.55e7b056093ef7db056d1094327ae989%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to