Notes From Django

Questions

Is it possible for an App to have different database setting?

There’s a related document in Django documentation:

https://docs.djangoproject.com/en/3.1/topics/db/multi-db/

Is it possible for an App to have it’s own settings.py ?

I think, this is not reasonble. The application can be (re-)used anywhere else, but it’s deployment takes place in the framework of the site. If it gets deployed in a completely different point, then it is a different service, i.e. a different –django or not– site.

However, it seems to be possible:

https://stackoverflow.com/questions/22386580/django-settings-per-application-best-practice

Not sure it is a good or bad idea.