#27325: Offer a solution for static file serving suitable for production use
------------------------------+------------------------------------------
Reporter: Tim Graham | Owner: Aleksej Manaev
Type: New feature | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------------
Description changed by Mads Jensen:
Old description:
> 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.
New description:
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. [http://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#comment:2>
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/067.45a58758bb72cece2a20db21e9d9015b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.