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?
Initially I made 2 apps (app_a and app_b) in a single project in Django.
Share
You need to remove or check the following:
INSTALLED_APPS.app_name_model_namein 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.