Where should I put the django general template file?

where should I put the general template files in the django project?
create a templates directory under the root directory of the project to store general templates such as base.html, and then add this directory to the TEMPLATE DIRS of settings.py?
or do you want to create a special common app, for general templates to store general templates such as base.html under the templates of the app?
or are there other more reasonable ways to organize?
Please give us your advice.

Apr.02,2021

there are two ways:
the first: there is a static/templates under every app that can be stored here
the second: the static/templates stored on the outermost can also be

.
  • How to customize LoginForm using django-mama-cas

    I want to use django-mama-cas to complete the CAS login, but the login module that comes with the system is a little too simple. I want to add something by myself, but Form cannot set its own defined Form (LOGIN Template in the setting file. I would li...

    Mar.04,2021
Menu