Skip to main content

Add migration scripts seamlessly

Project description

PyPI: https://pypi.org/project/django-migration-scripts

Installation

pip install django_migration_scripts

Usage

Add to INSTALLED_APPS in settings.py

INSTALLED_APPS = [
######,

'django_migration_scripts',

#####
]

Then run the script from shell

python manage.py addscript <app_name>

This adds a script in the app in the /scripts folder. Add your script there

Running the script

python manage.py runscripts

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-migration-scripts-0.1.2.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

django_migration_scripts-0.1.2-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

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