#35591: Add warning to runserver that is should not be used for production
-------------------------------------+-------------------------------------
     Reporter:  Andy Miller          |                     Type:
                                     |  Uncategorized
       Status:  new                  |                Component:  Core
                                     |  (Management commands)
      Version:  dev                  |                 Severity:  Normal
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 As per this discussion on the [https://forum.djangoproject.com/t/proposal-
 borrow-warning-from-werkzeug-for-runserver/32668 forum], I think adding a
 warning to the start of runserver would be valuable to those new to Django
 and a healthy reminder to those coming back to Django.

 The wording of the warning is:

 {{{
 WARNING: This is a development server. Do not use it in a production
 deployment. Use a production WSGI server instead.

 For more information on production servers see the documentation:
 https://docs.djangoproject.com/en/5.0/howto/deployment/
 }}}

 Additionally a flag should be added to optionally hide the warning.
 `--hide-unsuitable-for-production` was a suggestion.

 Finally the following 2 pages of the documentation should have add some
 wording to highlight that a deployed project should not use runserver.

 * https://docs.djangoproject.com/en/5.0/howto/deployment/ (Add a warning
 or paragraph that mentions switching)
 * https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/ (Add a
 section to switch away from runserver)
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35591>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070190a0b446ac-e7d5fd55-c86d-4912-b5b0-2b1af0b9aacc-000000%40eu-central-1.amazonses.com.

Reply via email to