#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.
--
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/010701815d280cff-b9079a29-94da-458f-84c4-fede38226cbe-000000%40eu-central-1.amazonses.com.