Skip to content

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

Open
mwhansen wants to merge 2 commits intodcramer:masterfrom
roverdotcom:django-18-argparse
Open

Update the management command to use argparse for Django >= 1.8#128
mwhansen wants to merge 2 commits intodcramer:masterfrom
roverdotcom:django-18-argparse

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