aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/main/urls.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-04-13 16:16:11 +0200
committerGravatar Leon Sandøy <[email protected]>2019-04-13 16:16:11 +0200
commitf29472a56f925127a077c4cadcc13fa852dc665b (patch)
tree34fcafe8e98ab0d9babc87f2118250ecbe697bda /pydis_site/apps/main/urls.py
parentAdded hrefs for the cards (diff)
refactoring slightly to use a class-based view, changing home to main. Ready to write the API search stuff now.
Diffstat (limited to 'pydis_site/apps/main/urls.py')
-rw-r--r--pydis_site/apps/main/urls.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/pydis_site/apps/main/urls.py b/pydis_site/apps/main/urls.py
new file mode 100644
index 00000000..11142040
--- /dev/null
+++ b/pydis_site/apps/main/urls.py
@@ -0,0 +1,11 @@
+from django.contrib import admin
+from django.urls import path
+
+from .views import Home
+
+
+app_name = 'home'
+urlpatterns = [
+ path('', Home.as_view(), name='home.index'),
+ path('admin/', admin.site.urls)
+]