Initially I made 2 apps (app_a and app_b) in a single project in Django. Now I want to delete one (say app_a). How should I do so? Is removing the app name from INSTALLED_APPS
in the settings file sufficient?
You need to remove or check the following:
INSTALLED_APPS
.app_name_model_name
in your database).your_app/context_processors.py
, if it has such as file).When you've been following proper coding principles (i.e., each Django app is a self-contained part of the web application) then most situations above won't occur. But when other apps do use some parts of that app, you need to check that first as it may require refactoring before deleting the app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With