diff --git a/get_together/settings.py b/get_together/settings.py
index 3fcd5bb..230837a 100644
--- a/get_together/settings.py
+++ b/get_together/settings.py
@@ -39,6 +39,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
+ 'django.contrib.flatpages',
'django.contrib.sites',
'rest_framework',
@@ -73,6 +74,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
+ 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'social_django.middleware.SocialAuthExceptionMiddleware',
]
diff --git a/get_together/templates/flatpages/default.html b/get_together/templates/flatpages/default.html
new file mode 100644
index 0000000..bb19f36
--- /dev/null
+++ b/get_together/templates/flatpages/default.html
@@ -0,0 +1,8 @@
+{% extends "get_together/base.html" %}
+{% load markup %}
+
+{% block title %}{{ flatpage.title }}{% endblock %}
+
+{% block content %}
+{{ flatpage.content|markdown }}
+{% endblock %}
diff --git a/get_together/templates/get_together/base.html b/get_together/templates/get_together/base.html
index e4c1f4e..511d9e3 100644
--- a/get_together/templates/get_together/base.html
+++ b/get_together/templates/get_together/base.html
@@ -34,6 +34,26 @@
body {
padding-top: 5rem;
}
+.footer {
+ padding-top: 1em;
+ padding-bottom: 1em;
+ border-top: #cfcfcf 1px solid;
+ background-color: #f5f5f5;
+ color: #aaaaaa;
+}
+.footer ul {
+ display: inline;
+ list-style-type: none;
+ margin-left: 0.5em;
+}
+.footer ul li {
+ display: inline;
+ margin-left: 0.5em;
+}
+.footer a {
+ text-decoration: none;
+ color: inherit;
+}
.starter-template {
padding: 3rem 1.5rem;
text-align: center;
@@ -102,6 +122,21 @@ form {
{% block content %}{% endblock %}
+{% load flatpages %}
+{% get_flatpages as flatpages %}
+
diff --git a/get_together/urls.py b/get_together/urls.py
index ff4ed55..5410619 100644
--- a/get_together/urls.py
+++ b/get_together/urls.py
@@ -70,6 +70,8 @@ urlpatterns = [
path('places//', views.show_place, name='show-place'),
path('+create-place/', views.create_place, name='create-place'),
+ path('about/', include('django.contrib.flatpages.urls')),
+
path('oauth/', include('social_django.urls', namespace='social')),
]
if settings.DEBUG: