[Django] #33782: runserver `--nostatic` masks actual error

52 views
Skip to first unread message

Django

unread,
Jun 13, 2022, 9:01:59 AM6/13/22
to django-...@googlegroups.com
#33782: runserver `--nostatic` masks actual error
-----------------------------------------+------------------------
Reporter: Michael | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 4.0
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 |
-----------------------------------------+------------------------
When one uses `--nostatic` with the `runserver` command, it masks the
actual error, see the following example:

{{{
$ python manage.py runserver --nostatic
usage: manage.py runserver [-h] [--ipv6] [--nothreading] [--noreload]
[--version] [--settings SETTINGS] [--pythonpath PYTHONPATH] [--no-color]
[--force-color] [--skip-checks]
[addrport]
manage.py runserver: error: unrecognized arguments: --nostatic

python manage.py runserver
CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False.
}}}

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

Django

unread,
Jun 13, 2022, 11:35:41 AM6/13/22
to django-...@googlegroups.com
#33782: runserver `--nostatic` masks actual error
-------------------------------------+-------------------------------------
Reporter: Michael | Owner: nobody
Type: Bug | Status: closed
Component: Core (Management | Version: 4.0
commands) |
Severity: Normal | Resolution: duplicate

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => duplicate
* component: Uncategorized => Core (Management commands)
* type: Uncategorized => Bug


Comment:

Duplicate of #32915. There is no need to report the same issue multiple
times.

--
Ticket URL: <https://code.djangoproject.com/ticket/33782#comment:1>

Django

unread,
Jun 13, 2022, 3:24:25 PM6/13/22
to django-...@googlegroups.com
#33782: runserver `--nostatic` masks actual error
-------------------------------------+-------------------------------------
Reporter: Michael | Owner: nobody
Type: Bug | Status: closed
Component: Core (Management | Version: 4.0
commands) |
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Michael):

Replying to [comment:1 Mariusz Felisiak]:


> Duplicate of #32915. There is no need to report the same issue multiple
times.

Omw sorry I see I did report it already. I thought I never got around to
it and saw it again yesterday

--
Ticket URL: <https://code.djangoproject.com/ticket/33782#comment:2>

Reply all
Reply to author
Forward
0 new messages