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

Update the management command to use argparse for Django >= 1.8 #128

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

Conversation

mwhansen
Copy link

Since django.core.management.runserver.Command doesn't have option_list in Django >= 1.8, the devserver command does not have the --noreload option causing autoreloading not to happen. This pull request makes devserver use argparse in Django >= 1.8.

@delinhabit delinhabit force-pushed the django-18-argparse branch from 481b01f to c71696a Compare May 3, 2016 14:42
@ShipraShalini
Copy link

@mwhansen I cannot run it with the changes you have made.
It says AttributeError: type object 'Command' has no attribute 'option_list' at line 47 (for backwards compatibility).
If catch the Exception, i get TypeError: 'Namespace' object is not iterable in run_from_argv.

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.

3 participants