django1/django/db/migrations
Jon Dufresne 661e39c8d5 Fixed #24559 -- Made MigrationLoader.load_disk() catch more specific ModuleNotFoundError.
Avoids inspecting the exception message, which is not considered a
stable API and can change across Python versions.

ModuleNotFoundError was introduced in Python 3.6. It is a subclass of
ImportError that is raised when the imported module does not exist. It
is not raised for other errors that can occur during an import. This
exception instance has the property "name" which holds the name of
module that failed to import.
2020-04-20 07:22:20 +02:00
..
operations Refs #28305 -- Consolidated field referencing detection in migrations. 2020-04-10 09:19:16 +02:00
__init__.py Implement swappable model support for migrations 2014-01-19 16:43:12 +00:00
autodetector.py Refs #22608 -- Made app_label required when optimizing migrations. 2020-04-09 10:08:02 +02:00
exceptions.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
executor.py Refs #31318 -- Moved MigrationExecutor.collect_sql() to MigrationLoader. 2020-03-09 08:23:56 +01:00
graph.py Refs #29784 -- Switched to https:// links where available. 2018-09-26 08:48:47 +02:00
loader.py Fixed #24559 -- Made MigrationLoader.load_disk() catch more specific ModuleNotFoundError. 2020-04-20 07:22:20 +02:00
migration.py Simplified various __eq__() methods. 2017-09-28 09:18:37 -04:00
optimizer.py Refs #22608 -- Made app_label required when optimizing migrations. 2020-04-09 10:08:02 +02:00
questioner.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
recorder.py Fixed #31233 -- Closed database connections and cursors after use. 2020-02-06 15:35:23 +01:00
serializer.py Fixed #27914 -- Fixed serialization of nested classes in migrations. 2019-11-25 11:12:44 +01:00
state.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
utils.py Refs #23919 -- Stopped inheriting from object to define new style classes. 2017-01-19 08:39:46 +01:00
writer.py Fixed #30147 -- Simplified directory creation with os.makedirs(..., exist_ok=True). 2019-01-31 12:53:36 -05:00