summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan DeMasi <jon.demasi@colorado.edu>2019-05-11 17:11:03 -0600
committerJonathan DeMasi <jon.demasi@colorado.edu>2019-05-11 17:11:03 -0600
commit7f8b52119a96b9cc27432c41c823346ab1920033 (patch)
tree166a37dc4b3ea76f50f0e4316a6c0aa55d5e368d
parent42f2750994c05e65509aec623e58a335a98390b1 (diff)
downloadwebsite-7f8b52119a96b9cc27432c41c823346ab1920033.tar
website-7f8b52119a96b9cc27432c41c823346ab1920033.tar.gz
website-7f8b52119a96b9cc27432c41c823346ab1920033.tar.bz2
website-7f8b52119a96b9cc27432c41c823346ab1920033.tar.xz
website-7f8b52119a96b9cc27432c41c823346ab1920033.zip
added flatpages
-rw-r--r--jthan.io/website/settings.py4
-rw-r--r--jthan.io/website/urls.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/jthan.io/website/settings.py b/jthan.io/website/settings.py
index 333f361..b0f923d 100644
--- a/jthan.io/website/settings.py
+++ b/jthan.io/website/settings.py
@@ -37,6 +37,8 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
+ 'django.contrib.sites',
+ 'django.contrib.flatpages',
'blog',
]
@@ -48,6 +50,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
+ 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
]
ROOT_URLCONF = 'website.urls'
@@ -119,3 +122,4 @@ USE_TZ = True
# https://docs.djangoproject.com/en/2.2/howto/static-files/
STATIC_URL = '/static/'
+SITE_ID = 1
diff --git a/jthan.io/website/urls.py b/jthan.io/website/urls.py
index 17a026a..43a51ed 100644
--- a/jthan.io/website/urls.py
+++ b/jthan.io/website/urls.py
@@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
-from django.urls import path
+from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
+ path('/', include('django.contrib.flatpages.urls')),
]