Commit 60da2304 by Bridger Maxwell

Adding a setting to disable the wiki in deployment.

parent ecc50314
...@@ -124,6 +124,8 @@ COURSE_TITLE = "Circuits and Electronics" ...@@ -124,6 +124,8 @@ COURSE_TITLE = "Circuits and Electronics"
ENABLE_MULTICOURSE = False # set to False to disable multicourse display (see lib.util.views.mitxhome) ENABLE_MULTICOURSE = False # set to False to disable multicourse display (see lib.util.views.mitxhome)
QUICKEDIT = False QUICKEDIT = False
WIKI_ENABLED = False
### ###
COURSE_DEFAULT = '6.002x_Fall_2012' COURSE_DEFAULT = '6.002x_Fall_2012'
......
...@@ -13,6 +13,8 @@ from .logsettings import get_logger_config ...@@ -13,6 +13,8 @@ from .logsettings import get_logger_config
DEBUG = True DEBUG = True
TEMPLATE_DEBUG = True TEMPLATE_DEBUG = True
WIKI_ENABLED = True
LOGGING = get_logger_config(ENV_ROOT / "log", LOGGING = get_logger_config(ENV_ROOT / "log",
logging_env="dev", logging_env="dev",
tracking_filename="tracking.log", tracking_filename="tracking.log",
......
...@@ -15,6 +15,8 @@ Dir structure: ...@@ -15,6 +15,8 @@ Dir structure:
""" """
from .dev import * from .dev import *
WIKI_ENABLED = True
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
......
...@@ -84,6 +84,7 @@ if settings.COURSEWARE_ENABLED: ...@@ -84,6 +84,7 @@ if settings.COURSEWARE_ENABLED:
) )
# Multicourse wiki # Multicourse wiki
if settings.WIKI_ENABLED:
urlpatterns += ( urlpatterns += (
url(r'^wiki/', include('simplewiki.urls')), url(r'^wiki/', include('simplewiki.urls')),
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/wiki/', include('simplewiki.urls')), url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/wiki/', include('simplewiki.urls')),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment