Get current quiz by domain from request.
[koed-quiz.git] / koedquiz / urls.py
index 51fd0d8..72de887 100644 (file)
@@ -1,10 +1,14 @@
-from django.conf.urls.defaults import patterns, include, url
-
+# -*- coding: utf-8 -*-
+# This file is part of KOED-Quiz, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from django.conf.urls import patterns, include, url
+from django.views.generic import TemplateView
 from django.contrib import admin
 admin.autodiscover()
 
 urlpatterns = patterns('',
-    url(r'^$', 'koedquiz.views.home', name='main_page'),
+    url(r'^$', TemplateView.as_view(template_name="quiz/home.html"), name='main_page'),
 
     url(r'^quiz/', include('quiz.urls')),