[Django]-Django 1.5 index page

76👍

That direct_to_template() function doesn’t exist anymore.

Try this with a generic template view:

from django.conf.urls import patterns
from django.views.generic import TemplateView

urlpatterns = patterns('',
    (r'^$', TemplateView.as_view(template_name="index.html")),
)

Leave a comment