Saturday, September 28, 2019

Re: calling index.html

Greetings Müller,

In order for your template to load for that specific page, you have to state it under that page's view in

class IndexView():
       template_name = "index.html"

// Or if it's a function view

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

Hope it helps!

Kai Wey

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
To view this discussion on the web visit

No comments:

Post a Comment