Any benefits of turning libraries for Django into an application?

When developing some functions for use with django. In this case, the middleware and some other utilities such as the decorator. Is there any potential to turn it into a Django app. There are no models in the library, so there is no point in the models.py file (for what you need to do django, see as an application) or paste in INSTALLED_APPS. But I see that people do all this, what are the benefits?

+3
source share
3 answers

You will need to make this application if you want to provide templates, template tags or filters in your library. Otherwise, Django will not pick them up.

+2

, . : / , ..

, .

.

+1

IMO, to instantly see the list of used applications / libraries - if you miss something, you can simply pip installor easy_installin no time.

0
source

Source: https://habr.com/ru/post/1775593/


All Articles