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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file django-migration-scripts-0.1.2.tar.gz.

File metadata

  • Download URL: django-migration-scripts-0.1.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for django-migration-scripts-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3dd78247a547b554c0050e59defa9eca03c4b6ca5a661a8ca96637e7a9a8e066
MD5 a8b783651f2ba9558f5d0b7dc1a049b6
BLAKE2b-256 0bcbeaf67e465518461dc0fa38745be3de4c2c3cfcdc3321c299ad89c71314cf

See more details on using hashes here.

File details

Details for the file django_migration_scripts-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: django_migration_scripts-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for django_migration_scripts-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60933d60b5da8fc952a8054cfb72bc94ef7c10c292f02cccef008dad1c7e0222
MD5 5fae934cb0a9620f6e9cb7ab7a26ee1e
BLAKE2b-256 4dad6dd93028b86c76a2cf8c1aa8dc7dfa1d70e44c140bd5516b02e31e5d0bee

See more details on using hashes here.

Supported by

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