fnp
/
koed-quiz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Django 2.2.
[koed-quiz.git]
/
koedquiz
/
urls.py
diff --git
a/koedquiz/urls.py
b/koedquiz/urls.py
index
207af23
..
4907150
100644
(file)
--- a/
koedquiz/urls.py
+++ b/
koedquiz/urls.py
@@
-1,17
+1,14
@@
-# -*- 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.
#
# 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.defaults import patterns, include, url
-
+from django.
urls import include, path
+from django.views.generic import TemplateView
from django.contrib import admin
from django.contrib import admin
-admin.autodiscover()
-urlpatterns =
patterns('',
-
url(r'^$', 'koedquiz.views.home'
, name='main_page'),
+urlpatterns =
[
+
path('', TemplateView.as_view(template_name="quiz/home.html")
, name='main_page'),
-
url(r'^
quiz/', include('quiz.urls')),
+
path('
quiz/', include('quiz.urls')),
- url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
- url(r'^admin/', include(admin.site.urls)),
-)
+ path('admin/', admin.site.urls),
+]