7
7
7a-6662020-02-06 18:06:53
Django
7a-666, 2020-02-06 18:06:53

How to structure an online store project in django?

For example, in the store there are 3 pages of the main category and news how best to organize the structure of the application
Let's say all applications use the same template and everything starts from the main page on this page products and news will be displayed should I create a separate application for the main chtol?
That is, I will have conditionally in the project 3 applications, the main one, goods, news, it seems to me somehow not elegant chtol
(it’s the main application, it seems to me it’s superfluous, but I can’t think of anything else)

That is, the question is how beautiful and make it clear to compose the structure of an online store project using the example of 3 applications: home, goods, news?
+ some explanations on how to connect other applications to the main one, I assume that you need to connect application models, maybe this is not so)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Sviridov, 2020-02-06
@7a-666

I would make a common application in which I store all sorts of common templates and logic. It contains "home page", "contacts", "about us" and stuff like that. In the same place the general models (for example, model for images). I also made separate applications for news and goods, because in terms of meaning these are unrelated things.
Ps and in general, sawing an online store on Django is steamy, like on any other framework. Because many things have to be done by hand. The resulting store will not be particularly expandable either. If the store is typical, it's easier to take some OpenCart and that's it. Much works out of the box, the functionality can be easily expanded with plugins, which are also dofiga.

S
Sanes, 2020-02-06
@Sanes

Such things are done at the discretion of the developer. Whatever is more convenient, do it.
Everyone does it their own way.

Y
Yura Khlyan, 2020-02-07
@MAGistr_MTM

Look here Django Oscar

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question