summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan DeMasi <jon.demasi@colorado.edu>2019-05-11 17:21:23 -0600
committerJonathan DeMasi <jon.demasi@colorado.edu>2019-05-11 17:21:23 -0600
commitdf0b11797c9b18391227601cf89ab756ad1fb70a (patch)
tree81980feab7c42a63c8507dd9261e84ae6bfe2a6a
parent7f8b52119a96b9cc27432c41c823346ab1920033 (diff)
downloadwebsite-df0b11797c9b18391227601cf89ab756ad1fb70a.tar
website-df0b11797c9b18391227601cf89ab756ad1fb70a.tar.gz
website-df0b11797c9b18391227601cf89ab756ad1fb70a.tar.bz2
website-df0b11797c9b18391227601cf89ab756ad1fb70a.tar.xz
website-df0b11797c9b18391227601cf89ab756ad1fb70a.zip
flat pages are working :-)
-rw-r--r--jthan.io/website/settings.py4
-rw-r--r--jthan.io/website/templates/flatpages/default.html9
2 files changed, 11 insertions, 2 deletions
diff --git a/jthan.io/website/settings.py b/jthan.io/website/settings.py
index b0f923d..c393911 100644
--- a/jthan.io/website/settings.py
+++ b/jthan.io/website/settings.py
@@ -58,7 +58,7 @@ ROOT_URLCONF = 'website.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [],
+ 'DIRS': [os.path.join(BASE_DIR, 'website', 'templates'),],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
@@ -109,7 +109,7 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE = 'en-us'
-TIME_ZONE = 'GMT'
+TIME_ZONE = 'America/Denver'
USE_I18N = True
diff --git a/jthan.io/website/templates/flatpages/default.html b/jthan.io/website/templates/flatpages/default.html
new file mode 100644
index 0000000..fb5246e
--- /dev/null
+++ b/jthan.io/website/templates/flatpages/default.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>{{ flatpage.title }}</title>
+</head>
+<body>
+{{ flatpage.content }}
+</body>
+</html>