1👍
✅
As far as I know there is no automatic way to do that, so you’ll have to do the following by hand:
- Move your package to the new place
- Reflect this change in your settings.py INSTALLED_APPS
- In all the migration files of you package you have to edit the module path, table names and complete_apps list
- In your database table south_migrationhistory you have to edit the app_name column
- Rename the app table(s) in the database
That’s all. To check that everything is working properly you can type python manage.py schemamigration your_new_app_name –auto and if you did everything properly it will say that nothing have changed. Now you can continue working with your app as usual.
0👍
Another solution is just move package to another namespace/place but don`t change package name.
- [Answer]-Django: concatinating strings to create a url to static image in template
- [Answer]-How do I register a class for the change_form.html in the admin template and use the key of the object?
Source:stackexchange.com