U
U
Untiwe2020-12-05 19:18:02
Django
Untiwe, 2020-12-05 19:18:02

Django one model for several applications?

Let's take the theoretical site "VKontakte". It has applications: "user page", "groups", "albums".
There are several applications and they all use the same model to get your avatar and name from the database. But django has its own models for each application. How to do it right in the end?
-One large VKontakte application, with pages: "user page", "groups", "albums"
-Creation of a separate application with models, and from it "pull" models for other applications
-Your option?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2020-12-06
@Untiwe

One more application is stupidly inconvenient to maintain, and as a result, applications in Django turned out to be more about breaking code into small parts than about reusing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question