from django.conf.urls import url, include
from django.contrib import admin


urlpatterns = [
        url(r'^material/', include('tk.material.urls')),
        url(r'^admin/', admin.site.urls),
]

from django.conf.urls import url, include
from django.contrib import admin
from django.views.generic.base import TemplateView


urlpatterns = [
        url(r'^$', TemplateView.as_view(template_name='base.html'), name='frontpage'),

        url(r'^material/', include('tk.material.urls')),
        url(r'^admin/', admin.site.urls),
]

Add a frontpage rendering view
Add a frontpage rendering view

  from django.conf.urls import url, include
  from django.contrib import admin
+ from django.views.generic.base import TemplateView
  
  
  urlpatterns = [
+         url(r'^$', TemplateView.as_view(template_name='base.html'), name='frontpage'),
+ 
          url(r'^material/', include('tk.material.urls')),
          url(r'^admin/', admin.site.urls),
  ]
  
Add a frontpage rendering view
## Code Before:
from django.conf.urls import url, include
from django.contrib import admin


urlpatterns = [
        url(r'^material/', include('tk.material.urls')),
        url(r'^admin/', admin.site.urls),
]

## Instruction:
Add a frontpage rendering view
## Code After:
from django.conf.urls import url, include
from django.contrib import admin
from django.views.generic.base import TemplateView


urlpatterns = [
        url(r'^$', TemplateView.as_view(template_name='base.html'), name='frontpage'),

        url(r'^material/', include('tk.material.urls')),
        url(r'^admin/', admin.site.urls),
]
