django1/django/core/management
Aymeric Augustin cc14d51ee8 Fixed #24704 -- Made the autoreloader survive SyntaxErrors.
With this change, it's expected to survive anything except errors
that make it impossible to import the settings. It's too complex
to fallback to a sensible behavior with a broken settings module.

Harcoding things about runserver in ManagementUtility.execute is
atrocious but it's the only way out of the chicken'n'egg problem:
the current implementation of the autoreloader primarily watches
imported Python modules -- and then a few other things that were
bolted on top of this design -- but we want it to kick in even if
the project contains import-time errors and django.setup() fails.

At some point we should throw away this code and replace it by an
off-the-shelf autoreloader that watches the working directory and
re-runs `django-admin runserver` whenever something changes.

Backport of fe6ddb837d from master
2015-08-29 23:12:08 +02:00
..
commands Fixed #24704 -- Made the autoreloader survive SyntaxErrors. 2015-08-29 23:12:08 +02:00
__init__.py Fixed #24704 -- Made the autoreloader survive SyntaxErrors. 2015-08-29 23:12:08 +02:00
base.py [1.8.x] Renamed RemovedInDjango20Warning to RemovedInDjango110Warning. 2015-06-23 07:22:16 -04:00
color.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
sql.py Fixed #23866 -- Harmonized refs to Django documentation from code 2014-12-25 13:53:13 +01:00
templates.py [1.8.x] Fixed a few uses of Template that relied on a default engine. 2015-02-22 23:22:19 +01:00
utils.py [1.8.x] Fixed #23271 -- Fixed makemessages crash/test failure for some locales. 2015-05-01 10:30:19 -04:00