L
L
ladozverxdd2017-08-30 19:22:58
Django
ladozverxdd, 2017-08-30 19:22:58

Django project structure?

Through startapp, I created several folders like user (everything is for registration, authorization, etc.), shop (everything is for the store), etc. Each of them has a templates folder with html files. How to make one html template file for all other files? Those. not each module has its own, but one for everything? Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2017-08-30
@ladozverxdd

It is possible to keep common templates in the root application. Or define the templates directory at the project level and set it in the settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question