Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make autoreload work under Django >= 1.8 #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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