Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whtsky/django-require-migration-name
require `name` in Django's `makemigrations`
https://github.com/whtsky/django-require-migration-name
django django-migrations
Last synced: 2 months ago
JSON representation
require `name` in Django's `makemigrations`
- Host: GitHub
- URL: https://github.com/whtsky/django-require-migration-name
- Owner: whtsky
- License: mit
- Created: 2021-01-05T13:16:57.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T19:50:59.000Z (9 months ago)
- Last Synced: 2024-03-14T20:56:12.830Z (9 months ago)
- Topics: django, django-migrations
- Language: Python
- Homepage:
- Size: 131 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django-require-migration-name
[![codecov](https://codecov.io/gh/whtsky/django-require-migration-name/branch/master/graph/badge.svg?token=WXUN262JEF)](https://codecov.io/gh/whtsky/django-require-migration-name)
require `name` in Django's `makemigrations`
## Installation
```bash
pip install django-require-migration-name
```## Usage
Add `django_require_migration_name` into your `INSTALLED_APPS`:
```python
INSTALLED_APPS = [
# ...'django_require_migration_name',
]
```Then you can't `makemigrations` without `name`:
```bash
>> 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