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.6 (2023-03-05)

  • Fix for rename sequences, indexes, constraints and M2M tables.

0.1.5 (2022-11-19)

  • Fix NameError.

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.6.tar.gz (4.4 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.6-py2.py3-none-any.whl (8.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: django_rename_app-0.1.6.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for django_rename_app-0.1.6.tar.gz
Algorithm Hash digest
SHA256 381a814241f84874fa5558e5fb33c7f1dc034f160f328815d7d0c55b8bf4d091
MD5 dd0de4221c82600739264ee614395d6c
BLAKE2b-256 e47bf0686b58e87d73f94f9512b61c6e3f4b170e326f27dabe8450ba56c64cf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_rename_app-0.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fdb348310a04194ae115f905bb91d4c7cfc3b17b968a820f4cd1e091fa801e5e
MD5 09f222a31694e5affab6c3b55446dfdd
BLAKE2b-256 e91fc266a9ec8a46a74e170a9388cbb99d874f1f9f9a97e6428c4467b021a491

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