Adding a setting to disable the wiki in deployment.
This commit is contained in:
@@ -124,6 +124,8 @@ COURSE_TITLE = "Circuits and Electronics"
|
||||
ENABLE_MULTICOURSE = False # set to False to disable multicourse display (see lib.util.views.mitxhome)
|
||||
QUICKEDIT = False
|
||||
|
||||
WIKI_ENABLED = False
|
||||
|
||||
###
|
||||
|
||||
COURSE_DEFAULT = '6.002x_Fall_2012'
|
||||
|
||||
@@ -13,6 +13,8 @@ from .logsettings import get_logger_config
|
||||
DEBUG = True
|
||||
TEMPLATE_DEBUG = True
|
||||
|
||||
WIKI_ENABLED = True
|
||||
|
||||
LOGGING = get_logger_config(ENV_ROOT / "log",
|
||||
logging_env="dev",
|
||||
tracking_filename="tracking.log",
|
||||
|
||||
@@ -15,6 +15,8 @@ Dir structure:
|
||||
"""
|
||||
from .dev import *
|
||||
|
||||
WIKI_ENABLED = True
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
|
||||
@@ -84,6 +84,7 @@ if settings.COURSEWARE_ENABLED:
|
||||
)
|
||||
|
||||
# Multicourse wiki
|
||||
if settings.WIKI_ENABLED:
|
||||
urlpatterns += (
|
||||
url(r'^wiki/', include('simplewiki.urls')),
|
||||
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/wiki/', include('simplewiki.urls')),
|
||||
|
||||
Reference in New Issue
Block a user