A Django app to provide easy simultaneous migrations
Project description
Quick migrations via manage.py
When executed without arguments, it will search for the QUICK_MIGRATE
setting in settings.py,
make migrations for every app in it and apply them.
Otherwise, it will do the same only upon apps given as arguments.
Prompt
py manage.py quickmigrate -h
for more specific details on arguments or read the docs below.
Quickstart
Installation
-
Open your Django project and activate virtual environment.
-
After activating virtual environment install the package using
pip install django-quickmigrate
-
Open your settings.py and add
'quickmigrate'
to yourINSTALLED_APPS
-
Add additional list
QUICK_MIGRATE
into your settings. It should look pretty much likeINSTALLED_APPS
, except you fill it only with apps you want to be migrated when you callpy manage.py quickmigrate
without arguments. -
And that's it. Now you can use
quickmigrate
in your project!
Additional arguments
Quickmigrate allows you to choose a variety of apps to migrate during one call.
You can manipulate this using additional arguments listed below:
-
-i
,--inst
— command will look at yourINSTALLED_APPS
instead ofQUICK_MIGRATE
. In its turn, this flag takes one optional argument: eitherbase
orall
(defaults toall
).base
will just callmakemigrations
andmigrate
commands. As the result, only basic apps such asadmin
will be migrated.all
will make and apply migrations for allINSTALLED_APPS
which support migrations.
-
-a
,--apps
— command will look for specific apps. It can take any amount of arguments starting from 1.
e.g.py manage.py quickmigrate --apps myapp1 myapp2 admin auth
With no arguments provided, the command will look in your QUICK_MIGRATE
setting.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.