diff --git a/lms/envs/devgroups/courses.py b/lms/envs/devgroups/courses.py index bcaae70a991b..92b28f3575a3 100644 --- a/lms/envs/devgroups/courses.py +++ b/lms/envs/devgroups/courses.py @@ -41,3 +41,6 @@ def course_db_for(course_id): } } +def askbot_url_for(course_id): + return "courses/{0}/discussions/".format(course_id) + diff --git a/lms/envs/devgroups/h_cs50.py b/lms/envs/devgroups/h_cs50.py index b838b1fdc31d..3cd6d6f2c054 100644 --- a/lms/envs/devgroups/h_cs50.py +++ b/lms/envs/devgroups/h_cs50.py @@ -1,3 +1,4 @@ from .courses import * -DATABASES = course_db_for('HarvardX/CS50x/2012') \ No newline at end of file +DATABASES = course_db_for('HarvardX/CS50x/2012') +ASKBOT_URL = askbot_url_for("HarvardX/CS50x/2012") \ No newline at end of file diff --git a/lms/envs/devgroups/m_6002.py b/lms/envs/devgroups/m_6002.py index 3d8feef76447..e791857d3ab3 100644 --- a/lms/envs/devgroups/m_6002.py +++ b/lms/envs/devgroups/m_6002.py @@ -1,3 +1,4 @@ from .courses import * -DATABASES = course_db_for('MITx/6.002x/2012_Fall') \ No newline at end of file +DATABASES = course_db_for('MITx/6.002x/2012_Fall') +ASKBOT_URL = askbot_url_for("MITx/6.002x/2012_Fall")