manage.py app commands enumeration fails silently when MEDIA_URL doesn't end with a slash
|Reported by:||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||1.5-beta-1|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
When the MEDIA_URL setting in settings.py does not contain a forward slash at the end, calling manage.py without arguments will result in only django core commands being displayed, but no application commands (as specified in INSTALLED_APPS) are shown.
This is presumably due to the parsing of the settings.py file failing silently on the incorrect MEDIA_URL setting. Although it is explicitly called out within the settings.py file (within comments above the MEDIA_URL setting), having it fail loudly when running manage.py is potentially a more expected behaviour.
Change History (10)
comment:8 Changed 4 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Ready for checkin → Accepted|