From a1d81ed7817b3443345b150a05a1bbe9d6f7d60c Mon Sep 17 00:00:00 2001 From: AlasdairSwan Date: Wed, 30 Dec 2015 12:40:31 -0500 Subject: [PATCH] ECOM-3047 update DOM to include the data-attributes that the programs IDA expects --- cms/djangoapps/contentstore/views/program.py | 2 ++ cms/templates/program_authoring.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/views/program.py b/cms/djangoapps/contentstore/views/program.py index c79117fb54..5772d6edaf 100644 --- a/cms/djangoapps/contentstore/views/program.py +++ b/cms/djangoapps/contentstore/views/program.py @@ -1,4 +1,5 @@ """Programs views for use with Studio.""" +from django.conf import settings from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.http import Http404, JsonResponse @@ -27,6 +28,7 @@ class ProgramAuthoringView(View): return render_to_response('program_authoring.html', { 'show_programs_header': programs_config.is_studio_tab_enabled, 'authoring_app_config': programs_config.authoring_app_config, + 'lms_base_url': '//{}/'.format(settings.LMS_BASE), 'programs_api_url': programs_config.public_api_url, 'programs_token_url': reverse('programs_id_token'), 'studio_home_url': reverse('home'), diff --git a/cms/templates/program_authoring.html b/cms/templates/program_authoring.html index 9d5538a3b4..40c0e87e1f 100644 --- a/cms/templates/program_authoring.html +++ b/cms/templates/program_authoring.html @@ -12,5 +12,5 @@ <%block name="content"> -
+