Re: [Django] #35591: Add warning to runserver that it should not be used for production

43 views
Skip to first unread message

Django

unread,
Jul 11, 2024, 6:18:05 AM7/11/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Suraj
Type: | Bahuguna
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
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
-------------------------------------+-------------------------------------
Changes (by Suraj Bahuguna):

* owner: (none) => Suraj Bahuguna
* status: new => assigned

Comment:

This will be the new output by default. Warning can be disabled by using
{{{--hide-unsuitable-for-production}}} flag


{{{
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

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/
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 13, 2024, 9:24:28 AM7/13/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Suraj
Type: | Bahuguna
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
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
-------------------------------------+-------------------------------------
Changes (by Ülgen Sarıkavak):

* cc: Ülgen Sarıkavak (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:4>

Django

unread,
Jul 31, 2024, 11:32:03 AM7/31/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Suraj
Type: | Bahuguna
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
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
-------------------------------------+-------------------------------------
Comment (by Andy Miller):

Task list:

* add flag to runserver command
* add new message with flag to hide it
* update output at https://docs.djangoproject.com/en/5.0/intro/tutorial01
/#the-development-server
* update reference docs: https://docs.djangoproject.com/en/5.0/ref/django-
admin/#runserver
* update deployment checklist
* update deployment docs with a warning
* add tests for new flag
* update existing tests to include extended output
--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:5>

Django

unread,
Jul 31, 2024, 12:25:04 PM7/31/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Andy
Type: | Miller
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
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
-------------------------------------+-------------------------------------
Changes (by Andy Miller):

* owner: Suraj Bahuguna => Andy Miller

Comment:

[https://github.com/django/django/pull/18435 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:6>

Django

unread,
Aug 1, 2024, 6:33:50 AM8/1/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Andy
Type: | Miller
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Andy Miller):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:7>

Django

unread,
Aug 1, 2024, 12:01:36 PM8/1/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Andy
Type: | Miller
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:8>

Django

unread,
Aug 7, 2024, 11:27:00 AM8/7/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Andy
Type: | Miller
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Andy Miller):

* needs_better_patch: 1 => 0

Comment:

Updated the PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:9>

Django

unread,
Aug 8, 2024, 4:09:02 AM8/8/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Andy
Type: | Miller
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):

In [changeset:"cec62fb99e8ff63f30c7871a048ab15081142668" cec62fb9]:
{{{#!CommitTicketReference repository=""
revision="cec62fb99e8ff63f30c7871a048ab15081142668"
Refs #35591 -- Emphasized that runserver is not suitable for production.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:10>

Django

unread,
Aug 8, 2024, 4:11:37 AM8/8/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Andy
Type: | Miller
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):

In [changeset:"73fcb14cd86fa320322437b9827e465115fb6043" 73fcb14]:
{{{#!CommitTicketReference repository=""
revision="73fcb14cd86fa320322437b9827e465115fb6043"
[5.1.x] Refs #35591 -- Emphasized that runserver is not suitable for
production.

Backport of cec62fb99e8ff63f30c7871a048ab15081142668 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:11>

Django

unread,
Aug 8, 2024, 4:52:42 AM8/8/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Andy
Type: | Miller
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:12>

Django

unread,
Aug 8, 2024, 6:22:12 PM8/8/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Andy
Type: | Miller
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Andy Miller):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:13>

Django

unread,
Aug 9, 2024, 1:55:36 AM8/9/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Andy
Type: | Miller
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:14>

Django

unread,
Aug 9, 2024, 4:34:21 AM8/9/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Andy
Type: | Miller
Cleanup/optimization | Status: closed
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"69aa13ffb92f6a7c62661c616a8c7b0f515ea43d" 69aa13f]:
{{{#!CommitTicketReference repository=""
revision="69aa13ffb92f6a7c62661c616a8c7b0f515ea43d"
Fixed #35591 -- Added unsuitable for production console warning to
runserver.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:15>

Django

unread,
Aug 12, 2024, 4:57:12 AM8/12/24
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Andy
Type: | Miller
Cleanup/optimization | Status: closed
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):

In [changeset:"f883bef05457a5a49eb31109429fc01737f82532" f883bef0]:
{{{#!CommitTicketReference repository=""
revision="f883bef05457a5a49eb31109429fc01737f82532"
Refs #35591 -- Removed hardcoded "stable" version in runserver warning.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:16>

Django

unread,
May 13, 2025, 6:02:41 AM5/13/25
to django-...@googlegroups.com
#35591: Add warning to runserver that it should not be used for production
-------------------------------------+-------------------------------------
Reporter: Andy Miller | Owner: Andy
Type: | Miller
Cleanup/optimization | Status: closed
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by GitHub <noreply@…>):

In [changeset:"f66c79e93d41d2cd32be244170b54080c0796584" f66c79e9]:
{{{#!CommitTicketReference repository=""
revision="f66c79e93d41d2cd32be244170b54080c0796584"
Refs #35591 -- Ensured isolated test environ for runserver warning.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35591#comment:17>
Reply all
Reply to author
Forward
0 new messages