Skip to content

Commit

Permalink
Fix ImproperlyConfigured for Django>=1.7
Browse files Browse the repository at this point in the history
Based on dcramer#99
  • Loading branch information
coagulant committed Oct 26, 2014
1 parent 9ab4b78 commit 2bae91f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion devserver/management/commands/runserver.py
Expand Up @@ -67,7 +67,12 @@ class Command(BaseCommand):
args = '[optional port number, or ipaddr:port]'

# Validation is called explicitly each time the server is reloaded.
requires_model_validation = False
def __init__(self):
if hasattr(self, 'requires_system_checks'):
self.requires_system_checks = False
else:
self.requires_model_validation = False # Django < 1.7
super(Command, self).__init__()

def run_from_argv(self, argv):
parser = self.create_parser(argv[0], argv[1])
Expand Down

0 comments on commit 2bae91f

Please sign in to comment.