aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/home/urls.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-20 14:39:16 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-20 14:39:16 +0100
commit43039cd13afd19ea59addc3bb92c3c600826d8a3 (patch)
tree1aaaf8b862a7b55836c6a64a16d2fc4cb4100e60 /pydis_site/apps/home/urls.py
parentAddress reviews (diff)
parentMerge pull request #213 from python-discord/django_front_page (diff)
Merge branch 'django' into django+200/wiki
# Conflicts: # Pipfile # Pipfile.lock # pydis_site/apps/home/tests/test_app_basics.py # pydis_site/apps/home/urls.py # pydis_site/hosts.py # pydis_site/settings.py
Diffstat (limited to 'pydis_site/apps/home/urls.py')
-rw-r--r--pydis_site/apps/home/urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/home/urls.py b/pydis_site/apps/home/urls.py
index 6d144aaa..b22508d9 100644
--- a/pydis_site/apps/home/urls.py
+++ b/pydis_site/apps/home/urls.py
@@ -2,13 +2,13 @@ from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
-from django.views.generic import TemplateView
+from .views import HomeView
app_name = 'home'
urlpatterns = [
+ path('', HomeView.as_view(), name='home'),
path('admin/', admin.site.urls),
path('notifications/', include('django_nyt.urls')),
path('wiki/', include('wiki.urls')),
- path('', TemplateView.as_view(template_name='home/index.html'), name='home.index'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)