Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f5a63f73
Commit
f5a63f73
authored
Oct 10, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove all askbot common settings
parent
1114f66a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
56 deletions
+0
-56
lms/envs/askbotsettings.py
+0
-0
lms/envs/common.py
+0
-56
No files found.
lms/envs/askbotsettings.py
deleted
100644 → 0
View file @
1114f66a
This diff is collapsed.
Click to expand it.
lms/envs/common.py
View file @
f5a63f73
...
...
@@ -26,12 +26,10 @@ from xmodule.static_content import write_module_styles, write_module_js
import
djcelery
from
path
import
path
from
.askbotsettings
import
*
# this is where LIVESETTINGS_OPTIONS comes from
from
.discussionsettings
import
*
################################### FEATURES ###################################
COURSEWARE_ENABLED
=
True
ASKBOT_ENABLED
=
False
GENERATE_RANDOM_USER_CREDENTIALS
=
False
PERFSTATS
=
False
...
...
@@ -97,15 +95,12 @@ PROJECT_ROOT = path(__file__).abspath().dirname().dirname() # /mitx/lms
REPO_ROOT
=
PROJECT_ROOT
.
dirname
()
COMMON_ROOT
=
REPO_ROOT
/
"common"
ENV_ROOT
=
REPO_ROOT
.
dirname
()
# virtualenv dir /mitx is in
ASKBOT_ROOT
=
REPO_ROOT
/
"askbot"
COURSES_ROOT
=
ENV_ROOT
/
"data"
# FIXME: To support multiple courses, we should walk the courses dir at startup
DATA_DIR
=
COURSES_ROOT
sys
.
path
.
append
(
REPO_ROOT
)
sys
.
path
.
append
(
ASKBOT_ROOT
)
sys
.
path
.
append
(
ASKBOT_ROOT
/
"askbot"
/
"deps"
)
sys
.
path
.
append
(
PROJECT_ROOT
/
'djangoapps'
)
sys
.
path
.
append
(
PROJECT_ROOT
/
'lib'
)
sys
.
path
.
append
(
COMMON_ROOT
/
'djangoapps'
)
...
...
@@ -149,10 +144,8 @@ TEMPLATE_DIRS = (
TEMPLATE_CONTEXT_PROCESSORS
=
(
'django.core.context_processors.request'
,
'django.core.context_processors.static'
,
'askbot.context.application_settings'
,
'django.contrib.messages.context_processors.messages'
,
#'django.core.context_processors.i18n',
'askbot.user_messages.context_processors.user_messages'
,
#must be before auth
'django.contrib.auth.context_processors.auth'
,
#this is required for admin
'django.core.context_processors.csrf'
,
#necessary for csrf protection
...
...
@@ -263,7 +256,6 @@ STATIC_ROOT = ENV_ROOT / "staticfiles"
STATICFILES_DIRS
=
[
COMMON_ROOT
/
"static"
,
PROJECT_ROOT
/
"static"
,
PROJECT_ROOT
/
"askbot"
/
"skins"
,
]
if
os
.
path
.
isdir
(
DATA_DIR
):
# Add the full course repo if there is no static directory
...
...
@@ -309,35 +301,6 @@ ALLOWED_GITRELOAD_IPS = ['207.97.227.253', '50.57.128.197', '108.171.174.178']
# in the global settings.py
AWS_QUERYSTRING_EXPIRE
=
10
*
365
*
24
*
60
*
60
# 10 years
################################### ASKBOT #####################################
LIVESETTINGS_OPTIONS
[
'MITX_ROOT_URL'
]
=
MITX_ROOT_URL
skin_settings
=
LIVESETTINGS_OPTIONS
[
1
][
'SETTINGS'
][
'GENERAL_SKIN_SETTINGS'
]
skin_settings
[
'SITE_FAVICON'
]
=
unicode
(
MITX_ROOT_URL
)
+
skin_settings
[
'SITE_FAVICON'
]
skin_settings
[
'SITE_LOGO_URL'
]
=
unicode
(
MITX_ROOT_URL
)
+
skin_settings
[
'SITE_LOGO_URL'
]
skin_settings
[
'LOCAL_LOGIN_ICON'
]
=
unicode
(
MITX_ROOT_URL
)
+
skin_settings
[
'LOCAL_LOGIN_ICON'
]
LIVESETTINGS_OPTIONS
[
1
][
'SETTINGS'
][
'LOGIN_PROVIDERS'
][
'WORDPRESS_SITE_ICON'
]
=
unicode
(
MITX_ROOT_URL
)
+
LIVESETTINGS_OPTIONS
[
1
][
'SETTINGS'
][
'LOGIN_PROVIDERS'
][
'WORDPRESS_SITE_ICON'
]
LIVESETTINGS_OPTIONS
[
1
][
'SETTINGS'
][
'LICENSE_SETTINGS'
][
'LICENSE_LOGO_URL'
]
=
unicode
(
MITX_ROOT_URL
)
+
LIVESETTINGS_OPTIONS
[
1
][
'SETTINGS'
][
'LICENSE_SETTINGS'
][
'LICENSE_LOGO_URL'
]
# ASKBOT_EXTRA_SKINS_DIR = ASKBOT_ROOT / "askbot" / "skins"
ASKBOT_EXTRA_SKINS_DIR
=
PROJECT_ROOT
/
"askbot"
/
"skins"
ASKBOT_ALLOWED_UPLOAD_FILE_TYPES
=
(
'.jpg'
,
'.jpeg'
,
'.gif'
,
'.bmp'
,
'.png'
,
'.tiff'
)
ASKBOT_MAX_UPLOAD_FILE_SIZE
=
1024
*
1024
# result in bytes
CACHE_MIDDLEWARE_ANONYMOUS_ONLY
=
True
CACHE_PREFIX
=
SITE_ID
ASKBOT_URL
=
'discussion/'
LOGIN_REDIRECT_URL
=
MITX_ROOT_URL
+
'/'
LOGIN_URL
=
MITX_ROOT_URL
+
'/'
ALLOW_UNICODE_SLUGS
=
False
ASKBOT_USE_STACKEXCHANGE_URLS
=
False
# mimic url scheme of stackexchange
ASKBOT_CSS_DEVEL
=
True
# Celery Settings
BROKER_TRANSPORT
=
"djkombu.transport.DatabaseTransport"
CELERY_ALWAYS_EAGER
=
True
djcelery
.
setup_loader
()
################################# SIMPLEWIKI ###################################
SIMPLE_WIKI_REQUIRE_LOGIN_EDIT
=
True
SIMPLE_WIKI_REQUIRE_LOGIN_VIEW
=
False
...
...
@@ -373,7 +336,6 @@ TEMPLATE_LOADERS = (
# 'django.template.loaders.filesystem.Loader',
# 'django.template.loaders.app_directories.Loader',
#'askbot.skins.loaders.filesystem_load_template_source',
# 'django.template.loaders.eggs.Loader',
)
...
...
@@ -393,13 +355,7 @@ MIDDLEWARE_CLASSES = (
'course_wiki.course_nav.Middleware'
,
'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware'
,
'askbot.middleware.forum_mode.ForumModeMiddleware'
,
'askbot.middleware.cancel.CancelActionMiddleware'
,
'django.middleware.transaction.TransactionMiddleware'
,
'askbot.middleware.view_log.ViewLogMiddleware'
,
'askbot.middleware.spaceless.SpacelessMiddleware'
,
# 'askbot.middleware.pagesize.QuestionsPageSizeMiddleware',
# 'debug_toolbar.middleware.DebugToolbarMiddleware',
'django_comment_client.utils.ViewNameMiddleware'
,
...
...
@@ -586,16 +542,4 @@ INSTALLED_APPS = (
# Discussion
'django_comment_client'
,
# For Askbot
'django.contrib.sitemaps'
,
'django.contrib.admin'
,
'django_countries'
,
'djcelery'
,
'djkombu'
,
'askbot'
,
'askbot.deps.livesettings'
,
'followit'
,
'keyedcache'
,
'robots'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment