django1/django/core/management/commands
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
..
__init__.py Major refactoring of django.core.management -- it's now a package rather than a 1730-line single module. All django-admin/manage.py commands are now stored in separate modules. This is backwards-incompatible for people who used django.core.management functions directly 2007-08-16 06:06:55 +00:00
check.py Fixed #17101 -- Integrated django-secure and added check --deploy option 2014-09-12 15:05:23 -04:00
compilemessages.py Fixed #23968 -- Replaced list comprehension with generators and dict comprehension 2014-12-08 07:58:23 -05:00
createcachetable.py [1.8.x] Fixed #24351, #24346 -- Changed the signature of allow_migrate(). 2015-02-20 21:55:50 +07:00
dbshell.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
diffsettings.py Fixed #23968 -- Replaced list comprehension with generators and dict comprehension 2014-12-08 07:58:23 -05:00
dumpdata.py [1.8.x] Fixed #24351, #24346 -- Changed the signature of allow_migrate(). 2015-02-20 21:55:50 +07:00
flush.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
inspectdb.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
loaddata.py [1.8.x] Fixed #24351, #24346 -- Changed the signature of allow_migrate(). 2015-02-20 21:55:50 +07:00
makemessages.py [1.8.x] Fixed #25123 -- Corrected makemessages --extension help text 2015-07-14 07:36:17 -04:00
makemigrations.py [1.8.x] Fixed #24427 -- Stopped writing migration files in dry run mode when merging. 2015-03-16 19:45:55 -04:00
migrate.py [1.8.x] Fixed #25231 -- Added recording of squashed migrations in the migrate command. 2015-08-07 18:16:37 -04:00
runfcgi.py Converted remaining management commands to argparse 2014-06-14 13:43:44 +02:00
runserver.py Fixed #24704 -- Made the autoreloader survive SyntaxErrors. 2015-08-29 23:12:08 +02:00
shell.py Fixed #22835 -- Deprecated NoArgsCommand. 2014-06-19 08:54:59 -04:00
showmigrations.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
sql.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
sqlall.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
sqlclear.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
sqlcustom.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
sqldropindexes.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
sqlflush.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
sqlindexes.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
sqlmigrate.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
sqlsequencereset.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
squashmigrations.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
startapp.py Converted remaining management commands to argparse 2014-06-14 13:43:44 +02:00
startproject.py Converted remaining management commands to argparse 2014-06-14 13:43:44 +02:00
syncdb.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
testserver.py [1.8.x] Fixed #24571 -- Restored testserver positional arguments parsing 2015-04-04 10:48:40 +02:00
validate.py Fixed #22835 -- Deprecated NoArgsCommand. 2014-06-19 08:54:59 -04:00