django-zero-migrations-commands
Provides a zeromigrations management-command that creates and applies zero migrations
Quick start
- Install with
pip install django-zero-migrations-commands - Add
"django_zero_migrations_commands"to yourINSTALLED_APPSsetting like this:INSTALLED_APPS = [ # ... "django_zero_migrations_commands", ]
- (Optional) Change the settings described in the next section in your
settings.py - Create zero migrations using
python manage.py zeromigrations create - Apply them on other systems using
python manage.py zeromigrations apply
Available settings
ZERO_MIGRATIONS_APPS: Optional[list[str]] = None
"""The apps to reset migrations for. default: `None`.
Will reset migrations for all local apps if `None`."""
ZERO_MIGRATIONS_ALLOW_CREATE_DEBUG_FALSE: bool = False
"""Whether the create action can be run in `DEBUG = False` mode. default: `False`"""
ZERO_MIGRATIONS_CONFIRM_CREATE_DEBUG_FALSE: bool = False
"""Whether to ask for confirmation before running the create action in `DEBUG = False` mode.
default: `False`"""
ZERO_MIGRATIONS_ALLOW_APPLY_DEBUG_FALSE: bool = True
"""Whether the apply action can be run in `DEBUG = False` mode. default: `True`"""
ZERO_MIGRATIONS_CONFIRM_APPLY_DEBUG_FALSE: bool = True
"""Whether to ask for confirmation before running the apply action in `DEBUG = False` mode.
default: `True`"""
ZERO_MIGRATIONS_BEFORE_CREATE_HOOK: Optional[Callable[[], None]] = None
"""The hook to run before creating new migrations. default: `None`."""
What it does
createremoves the migrations of your apps and replaces them by a new initial migration.applyresets the migration history after creating or receiving the new migrations by other means (i.e. version control)
Metadata
Release files for django-zero-migrations-commands 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_zero_migrations_commands-1.1.0.tar.gz | 46.2 kB | Without provenance | Details for django_zero_migrations_commands-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_zero_migrations_commands-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for django_zero_migrations_commands-1.1.0-py3-none-any.whl |
Total release size: 51.8 kB
Release files / django_zero_migrations_commands-1.1.0.tar.gz
| Download URL | django_zero_migrations_commands-1.1.0.tar.gz |
|---|---|
| Size | 46.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afa4bde4e0bb964e280cf7efcc8d2492958bcc73f181bca78cb295c43fd23957
|
|
BLAKE2b-256 checksum How to use checksums |
606af79d8926ec9c5366b62cb2c8c19a8f964f3a90cf99e707aa97e3a01b7f3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / django_zero_migrations_commands-1.1.0-py3-none-any.whl
| Download URL | django_zero_migrations_commands-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d7e2127e5c5ad1641801ae8c585867dcf0ccd330894b6ee11e13d30ab6cd8e1
|
|
BLAKE2b-256 checksum How to use checksums |
fef2145e10ccd0e234332902b3a87b02b8ac128b1964b1f953c02f67e59a867f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for django-zero-migrations-commands 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.