Answer the question
In order to leave comments, you need to log in
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
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.
Such things are done at the discretion of the developer. Whatever is more convenient, do it.
Everyone does it their own way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question