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_MIGRATEinto 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 quickmigratewithout arguments. -
And that's it. Now you can use
quickmigratein 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_APPSinstead ofQUICK_MIGRATE. In its turn, this flag takes one optional argument: eitherbaseorall(defaults toall).basewill just callmakemigrationsandmigratecommands. As the result, only basic apps such asadminwill be migrated.allwill make and apply migrations for allINSTALLED_APPSwhich 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.
Source Distribution
File details
Details for the file django-quickmigrate-1b2.tar.gz.
File metadata
- Download URL: django-quickmigrate-1b2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3579ba97e34d4a9eb4c38f47e168d7d1aba72ece99bc1278e9ec41bddf5604d9
|
|
| MD5 |
a8f807d25f29237c5babe5e700f846ea
|
|
| BLAKE2b-256 |
96bb2b20faa6d5adca772f20b33b811c659ba4eb115bca3a739a3aa88bb962fd
|