Skip to main content

require `name` in Django's `makemigrations`

Project description

django-require-migration-name

codecov

require name in Django's makemigrations

Installation

pip install django-require-migration-name

Usage

Add django_require_migration_name into your INSTALLED_APPS:

INSTALLED_APPS = [
    # ...

    'django_require_migration_name',
]

Then you can't makemigrations without name:

>> python manage.py makemigrations
CommandError: Please provide name for migration file(s).
>> python manage.py makemigrations -n name_here
No changes detected

Changelog

v0.2.0

  • fix: use underscore in package folder name

v0.1.0

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-require-migration-name-0.2.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django-require-migration-name-0.2.0.tar.gz.

File metadata

  • Download URL: django-require-migration-name-0.2.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for django-require-migration-name-0.2.0.tar.gz
Algorithm Hash digest
SHA256 582b1f17ea6d83f268e219d12d8be2b59a16914e3f6347e817f276689013dfed
MD5 e356912051139eb382d274ba109314d7
BLAKE2b-256 4839aa66cc24281db9dda6094934a9c074d4e964838c6ad7a72f8ea9ced68e8e

See more details on using hashes here.

File details

Details for the file django_require_migration_name-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: django_require_migration_name-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for django_require_migration_name-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7dc74f7a235c6e92b860dbe4be10d375d6c9cf7ed9af0bd8ca253875e364e6fc
MD5 6109db19fcf20149d12cfa30e7c4bb14
BLAKE2b-256 bcc186fe81530e8755e3678163ae37713f3a8e55299ba57085b467a69dc7ba29

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page