1
0
mirror of https://github.com/django/django.git synced 2025-03-10 09:22:46 +00:00
Aymeric Augustin fe6ddb837d 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.
2015-08-29 20:49:56 +02:00
..
2014-02-28 21:03:46 -05:00
2015-08-08 12:02:32 +02:00
2015-08-08 12:02:32 +02:00
2015-02-20 09:21:39 -05:00
2014-12-19 18:07:52 +01:00
2015-02-20 09:21:39 -05:00
2014-08-20 16:31:45 -04:00
2014-12-19 18:07:52 +01:00
2014-12-19 18:07:52 +01:00
2015-01-02 19:20:18 -05:00
2015-02-20 09:21:39 -05:00
2015-01-27 11:48:04 -05:00
2015-08-08 12:02:32 +02:00
2015-02-20 09:21:39 -05:00
2014-12-19 18:07:52 +01:00
2015-02-20 09:21:39 -05:00
2014-08-20 16:31:45 -04:00
2014-12-19 18:07:52 +01:00
2014-12-19 18:07:52 +01:00
2015-01-02 19:20:18 -05:00
2015-06-05 08:24:53 -04:00
2014-12-19 18:07:52 +01:00
2014-12-19 18:07:52 +01:00
2015-02-20 09:21:39 -05:00
2014-08-20 16:31:45 -04:00
2014-09-02 21:34:29 -04:00
2015-01-02 19:20:18 -05:00
2015-02-20 09:21:39 -05:00
2015-08-08 12:02:32 +02:00
2015-01-02 19:20:18 -05:00
2015-02-20 09:21:39 -05:00
2015-01-27 11:48:04 -05:00
2015-05-01 16:24:39 -04:00
2015-05-20 13:48:06 -04:00
2015-08-18 19:52:45 -04:00