aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/settings.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-08 12:48:53 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-08 12:48:53 +0100
commit3d868521f60b1b8d5d1106e4b8cd089a018328e3 (patch)
treeb90f4563965fe8d64fb7346f3fb65f7c2cc86151 /pydis_site/settings.py
parentAdd django-wiki, and downgrade to Django 2.1 (diff)
First attempt at getting the wiki up
Diffstat (limited to 'pydis_site/settings.py')
-rw-r--r--pydis_site/settings.py26
1 files changed, 23 insertions, 3 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py
index e8355918..2212da21 100644
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -64,22 +64,34 @@ else:
INSTALLED_APPS = [
'pydis_site.apps.api',
'pydis_site.apps.home',
- 'pydis_site.apps.wiki',
+ 'pydis_site.apps.wiki_container',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
+ 'django.contrib.humanize.apps.HumanizeConfig',
'django.contrib.sessions',
'django.contrib.messages',
+ 'django.contrib.sites.apps.SitesConfig',
'django.contrib.staticfiles',
'crispy_forms',
+ 'django_crispy_bulma',
'django_hosts',
'django_filters',
- 'django_crispy_bulma',
+ 'django_nyt.apps.DjangoNytConfig',
'django_simple_bulma',
+ 'mptt',
'rest_framework',
- 'rest_framework.authtoken'
+ 'rest_framework.authtoken',
+ 'sekizai',
+ 'sorl.thumbnail',
+
+ 'wiki.apps.WikiConfig',
+ 'wiki.plugins.attachments.apps.AttachmentsConfig',
+ 'wiki.plugins.notifications.apps.NotificationsConfig',
+ 'wiki.plugins.images.apps.ImagesConfig',
+ 'wiki.plugins.macros.apps.MacrosConfig',
]
MIDDLEWARE = [
@@ -112,6 +124,8 @@ TEMPLATES = [
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
+
+ "sekizai.context_processors.sekizai",
],
},
},
@@ -257,3 +271,9 @@ BULMA_SETTINGS = {
"link": "$primary",
}
}
+
+# Required for the wiki
+SITE_ID = 1
+
+WIKI_ACCOUNT_HANDLING = False
+WIKI_ACCOUNT_SIGNUP_ALLOWED = False