A Django Management Command to rename existing Django Applications.
Project description
django-rename-app
A Django Management Command to rename existing Django Applications.
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.7 (2023-11-08)
- Fixes for Python 3.7+.
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
Built Distribution
File details
Details for the file django_rename_app-0.1.7.tar.gz
.
File metadata
- Download URL: django_rename_app-0.1.7.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1236dacfbaf06d63aa53a665333c9e0b4943ef41019aae7626dd5fb5ffa69b5 |
|
MD5 | a180193797e9068827e08c5e3ce6d972 |
|
BLAKE2b-256 | 70f60cb0c7169584e8f87c229e6336ce98f90cbb911ae374e2a7683c25e872b4 |
File details
Details for the file django_rename_app-0.1.7-py2.py3-none-any.whl
.
File metadata
- Download URL: django_rename_app-0.1.7-py2.py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68ed0dbc9fc167b72cf2f3ba6b464d7981a42a0e09070476cf94f1f603f7a433 |
|
MD5 | b50f8a49636af84b7ce4212b58dc9f0b |
|
BLAKE2b-256 | b34b6a15f0a25003f7c563218722ee02968f008bedbc4e9d0c08fe9344421d5c |