I am new to django. I want to write some templates for my app. And write it. But It is seems not loaded.
The structure of the template is below:
mysite/templates/admin is for overriding the admin
mysite/myapp/templates/myapp/* is for my app.
So far it works well. But it just loads the templates of my app.
Yeah, in the settings.py , the config is :
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.static',
],
},
},
]
I really can't find the the point. Please help with this. Thank you in advance.