Skip to content

Conversation

delinhabit
Copy link

@delinhabit delinhabit commented May 4, 2016

Currently if you have a syntax error in any of your files the application and you used non-standard runserver arguments (ie. --wsgi-app) it will crash the running server with the following error:

Using WSGI application 'common.wsgi'
usage: manage.py runserver [-h] [--version] [-v {0,1,2,3}]
                           [--settings SETTINGS] [--pythonpath PYTHONPATH]
                           [--traceback] [--no-color] [--ipv6] [--nothreading]
                           [--noreload]
                           [addrport]
manage.py runserver: error: unrecognized arguments: --wsgi-app=common.wsgi

This PR fixes the issue by patching get_commands to always return the runserver command from the devserver package. The patch is only applied to Django>=1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant