[Django]-Django app is working while not included in settings.py

6👍

If you just need to show some static view of an app, defining the url is enough(which may be done in the main urls itself). However, if your app has some models and you need to include it in migrate command (and to get its tables created), you need to include it in the installed_apps.

👤art

1👍

Yes, it’s mandatory to include each app you want to use in your project to INSTALLED_APPS. It helps django build paths to it’s (app’s) models, views, middlewares etc. It depends not only to apps written by yourself but also for third-party apps which extends django’s functionality, for example django rest framework, modeltranslation and so on.

👤Anlis

Leave a comment