django_sorcery.management.alembic module¶
Alembic Django command things.
-
class
django_sorcery.management.alembic.
AlembicAppConfig
(name, config, script, db, app, version_path, tables)¶ Bases:
tuple
-
app
¶ Alias for field number 4
-
config
¶ Alias for field number 1
-
db
¶ Alias for field number 3
-
name
¶ Alias for field number 0
-
script
¶ Alias for field number 2
-
tables
¶ Alias for field number 6
-
version_path
¶ Alias for field number 5
-
-
class
django_sorcery.management.alembic.
AlembicCommand
(stdout=None, stderr=None, no_color=False, force_color=False)[source]¶ Bases:
django.core.management.base.BaseCommand
Base alembic django command.
-
run_env
(context, appconfig)[source]¶ Executes an alembic context, just like the env.py file of alembic.
-
sorcery_apps
¶ All sorcery apps and their alembic configs.
-