Sunday, September 29, 2019

Re: calling index.html

You can use generic.TemplateView to load an HTML template.

See for example:
 
Although, there are many options to use in your templates and usually it's better not to load a static HTML page.


On Sun, Sep 29, 2019 at 1:26 AM Tato Müller <tators@gmail.com> wrote:
Hi everyone.

How can i call an html page when i request the root of my app, like http://127.0.0.1:8000/app.
I want index.html loads when i call this url.

Could you help me?

--
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/d7441b68-9cf2-47ec-950e-b44b6bd9717c%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/CABD5YeH0nqdhS%3DyzzUx1YsO56AXaO89giZLcu%2B8ksfk8XcHB4Q%40mail.gmail.com.

No comments:

Post a Comment