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.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.5.tar.gz (7.6 kB view hashes)

Uploaded source

Built Distribution

django_rename_app-0.1.5-py2.py3-none-any.whl (7.7 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page