Your template name should be: template_name = "index.html"
That's all.

On Thu, Aug 22, 2019 at 12:55 PM RONAK JAIN <jainronak...@gmail.com> wrote:

> Hi
>
> I am new in Django I am doing struggle with add  Django templates using by
> inheritance.
>
>
> so when I am trying within *Example::  index.html  add inside the
> blog.html but, *I am getting the direct blog.html, not index.html on the
> index page.
>
>
> so I used simply in index.html.
>
> *index.html:*
>
> {%. include  "blog.html"   %}
>
> *view.py*
>
> class blog(TemplateView):
>     template_name = "blog.html"
>
>
> *or Can I use templateview for dynamically ?*
>
>
>
> can you help me with that? how can I render dynamically my blog.html file?.
>
>
> Thanks
>
>
>
> --
> 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/CA%2BAqMUdZDk3ce7HY5WTTB0uVNA%3DYsnx3OxUj3x4rf3%3D-2AfMBA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BAqMUdZDk3ce7HY5WTTB0uVNA%3DYsnx3OxUj3x4rf3%3D-2AfMBA%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/CACNsr29ACtT4JDf3He8h_14HXRLQQxP%2BLJD5oz7XBusuSnx0nw%40mail.gmail.com.

Reply via email to