Skip to main content

A Django Management Command to rename existing Django Applications.

Project description

django-rename-app

A Django Management Command to rename existing Django Applications.

PyPI version

Installation

pip install django-rename-app.

Add to your Django settings.py INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    'django_rename_app',
    ...
]

Usage

python manage.py rename_app <old_app_name> <new_app_name>

For full detailed instructions see https://odwyer.software/blog/how-to-rename-an-existing-django-application

Release History

0.1.4 (2022-11-17)

  • Fix for DB tables with uppercase chars.
  • Get content_type name from the database instead of making assumption.

0.1.3 (2021-03-29)

  • Handle table name truncation as Django does.

0.1.2 (2020-06-02)

  • When ran multiple times at the same time, Exception would raise from rename queries. Catch and log this instead of crashing.

0.1.1 (2020-06-01)

  • Documentation updates.

0.1.0 (2020-06-01)

  • 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_rename_app-0.1.4.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

django_rename_app-0.1.4-py2.py3-none-any.whl (7.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django_rename_app-0.1.4.tar.gz.

File metadata

  • Download URL: django_rename_app-0.1.4.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for django_rename_app-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e1d01a1380066aa0828050ea311e86ae060a70a06f772017f75f60ae84033162
MD5 ae02859d5dde7e9fdecacf1ada6da027
BLAKE2b-256 3d4092080fe4fc9b567082eeac6aea96deab7f7443901294635e0127a202da99

See more details on using hashes here.

File details

Details for the file django_rename_app-0.1.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_rename_app-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cf6dda70cd890a7eddc3e9d5692bbe843ce8373c90403125e210f390461ee162
MD5 277516308f8d9dd9cd5f9c7565d07986
BLAKE2b-256 069d13b3e1d839dc78cee42133ca0a33d3b11d1cb9459615b0ee21dbbca40003

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