Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#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)

comment:1 by Mariusz Felisiak, 2 years ago

Component: UncategorizedCore (Management commands)
Resolution: duplicate
Status: newclosed
Type: UncategorizedBug

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

in reply to:  1 comment:2 by Michael, 2 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.
Back to Top