aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/pages
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-12-09 17:16:41 +0000
committerMatthew Lemon <y@yulqen.org>2024-12-09 17:16:41 +0000
commitb481069d9444cc0756bd9f6780e7700dcf4903f5 (patch)
tree5cba9e3d501f79747c8af22bd1b0fd7d783e7ded /alphabetlearning/pages
parentd3dda8c0bd194c28cf11c189c150c00bdc3e8a83 (diff)
wip: moving home page to home app and implementing reCAPTCHA
Diffstat (limited to '')
-rw-r--r--alphabetlearning/pages/__init__.py0
-rw-r--r--alphabetlearning/pages/admin.py3
-rw-r--r--alphabetlearning/pages/apps.py6
-rw-r--r--alphabetlearning/pages/migrations/__init__.py0
-rw-r--r--alphabetlearning/pages/models.py3
-rw-r--r--alphabetlearning/pages/tests.py3
-rw-r--r--alphabetlearning/pages/urls.py8
-rw-r--r--alphabetlearning/pages/views.py5
8 files changed, 28 insertions, 0 deletions
diff --git a/alphabetlearning/pages/__init__.py b/alphabetlearning/pages/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/alphabetlearning/pages/__init__.py
diff --git a/alphabetlearning/pages/admin.py b/alphabetlearning/pages/admin.py
new file mode 100644
index 0000000..8c38f3f
--- /dev/null
+++ b/alphabetlearning/pages/admin.py
@@ -0,0 +1,3 @@
+from django.contrib import admin
+
+# Register your models here.
diff --git a/alphabetlearning/pages/apps.py b/alphabetlearning/pages/apps.py
new file mode 100644
index 0000000..cdd024b
--- /dev/null
+++ b/alphabetlearning/pages/apps.py
@@ -0,0 +1,6 @@
+from django.apps import AppConfig
+
+
+class PagesConfig(AppConfig):
+ default_auto_field = 'django.db.models.BigAutoField'
+ name = 'pages'
diff --git a/alphabetlearning/pages/migrations/__init__.py b/alphabetlearning/pages/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/alphabetlearning/pages/migrations/__init__.py
diff --git a/alphabetlearning/pages/models.py b/alphabetlearning/pages/models.py
new file mode 100644
index 0000000..71a8362
--- /dev/null
+++ b/alphabetlearning/pages/models.py
@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.
diff --git a/alphabetlearning/pages/tests.py b/alphabetlearning/pages/tests.py
new file mode 100644
index 0000000..7ce503c
--- /dev/null
+++ b/alphabetlearning/pages/tests.py
@@ -0,0 +1,3 @@
+from django.test import TestCase
+
+# Create your tests here.
diff --git a/alphabetlearning/pages/urls.py b/alphabetlearning/pages/urls.py
new file mode 100644
index 0000000..f8c5b15
--- /dev/null
+++ b/alphabetlearning/pages/urls.py
@@ -0,0 +1,8 @@
+from django.urls import path
+
+from . import views
+
+app_name = "pages"
+urlpatterns = [
+ path("", views.HomePageView.as_view(), name="home"),
+]
diff --git a/alphabetlearning/pages/views.py b/alphabetlearning/pages/views.py
new file mode 100644
index 0000000..81d4392
--- /dev/null
+++ b/alphabetlearning/pages/views.py
@@ -0,0 +1,5 @@
+from django.views.generic import TemplateView
+
+
+class HomePageView(TemplateView):
+ template_name = "pages/home.html"