yourapp/urls.py

from django.urls import path

from . import path

urlpatterns =[
           path(' ', views.index, name='index'),
]



views.py

def index(request):
       return render(request, 'index.html')






On Thu, 3 Oct 2019, 17:03 Tosin Ayoola, <tosinayoo...@gmail.com> wrote:

> Did you set your template folder correctly in your setting file and in
> your view are you pointing to the right directory where your .html is
> located?
>
> On Oct 3, 2019 08:18, "yerri swamy" <dussayerrisw...@gmail.com> wrote:
>
> I tried like this
> testapp>template>base.html
> but also its showing same issue please help me anyone..
> views.py
>
>    1.
>
>    from django.shortcuts import render
>
>    2.
>    3.
>
>    # Create your views here.
>
>    4.
>
>    def hello_world(request):
>
>    5.
>
>       
>
>    1.
>
>       return render(request,'testapp/template/base.html',{})
>
>
>
> On Wed, Sep 25, 2019 at 11:34 AM Desh Deepak <deshdeepak...@gmail.com>
> wrote:
>
>> Create template folder inside testapp.
>>
>> Like this:
>> testapp>template>base.html
>>
>>
>>
>> On Wed, 25 Sep 2019, 10:47 yerri swamy, <dussayerrisw...@gmail.com>
>> wrote:
>>
>>>
>>>
>>> On Mon, Sep 23, 2019 at 6:53 PM Desh Deepak <deshdeepak...@gmail.com>
>>> wrote:
>>>
>>>> Show me your views.py file.
>>>>
>>>> On Mon, 23 Sep 2019, 18:48 Abu Yusuf, <yu...@binate-solutions.com>
>>>> wrote:
>>>>
>>>>> 1. ensure you have a folder templates inside static folder
>>>>> 2. ensure you filled up templates_dir: 'templates'
>>>>> 3. ensure 'base.html' exists inside templates folder
>>>>>
>>>>> On Mon, Sep 23, 2019 at 6:40 PM yerri swamy <dussayerrisw...@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+unsubscr...@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
>>>>>> <https://groups.google.com/d/msgid/django-users/208e411a-a8f5-4238-b846-f086826f2ff4%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>>> 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+unsubscr...@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
>>>>> <https://groups.google.com/d/msgid/django-users/CACNsr29mvap_G4%2Bc70NrkDZEQvPye%3D22caxfBvdUvMt_b7kXqQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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+unsubscr...@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
>>>> <https://groups.google.com/d/msgid/django-users/CAJ0m4xiPWfJ%3Dt-CjkDL81F7wn5ETmcBRacMyBi5n0zpO0C%3DUQg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAKMSwL-OH3MOgjE5YDwVtsH-2xPv5oNxvuWHna8MZYUXS0iR0A%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAKMSwL-OH3MOgjE5YDwVtsH-2xPv5oNxvuWHna8MZYUXS0iR0A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAJ0m4xhvoPjpgJXQKk61oG4rfnVRnUwLCX1CgYH%3DGdze8BGAfw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJ0m4xhvoPjpgJXQKk61oG4rfnVRnUwLCX1CgYH%3DGdze8BGAfw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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+unsubscr...@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
> <https://groups.google.com/d/msgid/django-users/CAKMSwL-WqaCjmAvqX23kcWT%2BrCv6b25PjQxq-9AKjPkYNOVm2g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> 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+unsubscr...@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
> <https://groups.google.com/d/msgid/django-users/CAHLKn72%3D6M%2B2Oqx-oev9TW9zLPbCyHbdzh_djbgLZ5%3DuU-EsNQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJ0m4xjobX3VsXG3w8cUVP_fL-5_WwG85sxECpFBRoPhgA9fnQ%40mail.gmail.com.

Reply via email to