#27325: Offer a solution for static file serving suitable for production use
----------------------------------------+------------------------
Reporter: Tim Graham | Owner: nobody
Type: New feature | Status: new
Component: Core (Other) | Version: master
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
----------------------------------------+------------------------
The documentation for the function for serving static files,
`django.contrib.staticfiles.views.serve()`, describes it as "grossly
inefficient and probably insecure. This is only intended for local
development, and should never be used in production." To ease the
deployment of small sites, it would be nice to fix or replace it with
something that could be used in production. [https://whitenoise.evans.io/
WhiteNoise] is an example of static file serving done in Python and is a
possible candidate for integration in Django.
Ideas are discussed in more detail on the
[https://groups.google.com/d/topic/django-
developers/N0KbgDeLuUE/discussion delegating our static file serving]
thread on django-developers.
--
Ticket URL: <https://code.djangoproject.com/ticket/27325>
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.306f9a931cc9dfb83d557a25d7368078%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.