#33782 closed Bug (duplicate)
runserver `--nostatic` masks actual error
Reported by: | Michael | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | 4.0 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Change History (2)
follow-up: 2 comment:1 by , 3 years ago
Component: | Uncategorized → Core (Management commands) |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Type: | Uncategorized → Bug |
comment:2 by , 3 years ago
Replying to 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
Note:
See TracTickets
for help on using tickets.
Duplicate of #32915. There is no need to report the same issue multiple times.