Hi guys,By using templates folder i am not getting what i am expecting and i am getting error 'Template Does Not Exist' ,and also defaulty it's not coming templates variable in settings.py file,How do i slove this error please explain me any one.
--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/208e411a-a8f5-4238-b846-f086826f2ff4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACNsr29mvap_G4%2Bc70NrkDZEQvPye%3D22caxfBvdUvMt_b7kXqQ%40mail.gmail.com.
Hi guys,By using templates folder i am not getting what i am expecting and i am getting error 'Template Does Not Exist' ,and also defaulty it's not coming templates variable in settings.py file,How do i slove this error please explain me any one.
--
Hi ,
You should config the template settings:
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
Sent from Mail for Windows 10
--
Hi guys,By using templates folder i am not getting what i am expecting and i am getting error 'Template Does Not Exist' ,and also defaulty it's not coming templates variable in settings.py file,How do i slove this error please explain me any one.
--
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 django-users+unsubscribe@googlegroups.com.
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'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',
],
},
},
]
{% extends 'base.html' %}
Can you paste the section of your view code & Hw are you referencing your base.html is it directly in ur templates folder?
On Sep 23, 2019 13:40, "yerri swamy" <dussaye...@gmail.com> wrote:
Hi guys,By using templates folder i am not getting what i am expecting and i am getting error 'Template Does Not Exist' ,and also defaulty it's not coming templates variable in settings.py file,How do i slove this error please explain me any one.
--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/208e411a-a8f5-4238-b846-f086826f2ff4%40googlegroups.com.
--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHLKn72RA0QThHM0GLNuPAdm9r46fKExeFsgSKy5sj%2Bk_btHVw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAJsLnoeWbqy6TFuph1j2%2ByaZuek1wFLUbGdYObf_RYzSOEusA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJ0m4xiPWfJ%3Dt-CjkDL81F7wn5ETmcBRacMyBi5n0zpO0C%3DUQg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKMSwL-OH3MOgjE5YDwVtsH-2xPv5oNxvuWHna8MZYUXS0iR0A%40mail.gmail.com.
from django.shortcuts import render
# Create your views here.
def hello_world(request):
return render(request,'testapp/template/base.html',{})
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJ0m4xhvoPjpgJXQKk61oG4rfnVRnUwLCX1CgYH%3DGdze8BGAfw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/208e411a-a8f5-4238-b846-f086826f2ff4%40googlegroups.com.
--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACNsr29mvap_G4%2Bc70NrkDZEQvPye%3D22caxfBvdUvMt_b7kXqQ%40mail.gmail.com.
--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJ0m4xiPWfJ%3Dt-CjkDL81F7wn5ETmcBRacMyBi5n0zpO0C%3DUQg%40mail.gmail.com.
--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKMSwL-OH3MOgjE5YDwVtsH-2xPv5oNxvuWHna8MZYUXS0iR0A%40mail.gmail.com.
--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJ0m4xhvoPjpgJXQKk61oG4rfnVRnUwLCX1CgYH%3DGdze8BGAfw%40mail.gmail.com.
--
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 django-users+unsubscribe@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKMSwL-WqaCjmAvqX23kcWT%2BrCv6b25PjQxq-9AKjPkYNOVm2g%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/208e411a-a8f5-4238-b846-f086826f2ff4%40googlegroups.com.
--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACNsr29mvap_G4%2Bc70NrkDZEQvPye%3D22caxfBvdUvMt_b7kXqQ%40mail.gmail.com.
--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJ0m4xiPWfJ%3Dt-CjkDL81F7wn5ETmcBRacMyBi5n0zpO0C%3DUQg%40mail.gmail.com.
--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKMSwL-OH3MOgjE5YDwVtsH-2xPv5oNxvuWHna8MZYUXS0iR0A%40mail.gmail.com.
--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJ0m4xhvoPjpgJXQKk61oG4rfnVRnUwLCX1CgYH%3DGdze8BGAfw%40mail.gmail.com.
--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKMSwL-WqaCjmAvqX23kcWT%2BrCv6b25PjQxq-9AKjPkYNOVm2g%40mail.gmail.com.
--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHLKn72%3D6M%2B2Oqx-oev9TW9zLPbCyHbdzh_djbgLZ5%3DuU-EsNQ%40mail.gmail.com.