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.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/d3ea0b15-d7da-4f59-b2b8-ed2eaee1f6df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.