Commit 17b5ccf1 by Adam Palay Committed by Feanil Patel

creates "edge" case

parent bf5af6c8
...@@ -28,10 +28,13 @@ def index(request): ...@@ -28,10 +28,13 @@ def index(request):
return redirect(settings.MKTG_URLS.get('ROOT')) return redirect(settings.MKTG_URLS.get('ROOT'))
university = branding.get_university(request.META.get('HTTP_HOST')) university = branding.get_university(request.META.get('HTTP_HOST'))
if university is None: if university == 'edge':
return student.views.index(request, user=request.user) return render_to_response('university_profile/edge.html', {})
# we do not expect this case to be reached in cases where
# marketing and edge are enabled
return student.views.index(request, user=request.user)
return render_to_response('university_profile/edge.html', {})
@ensure_csrf_cookie @ensure_csrf_cookie
...@@ -46,7 +49,9 @@ def courses(request): ...@@ -46,7 +49,9 @@ def courses(request):
return redirect(marketing_link('COURSES'), permanent=True) return redirect(marketing_link('COURSES'), permanent=True)
university = branding.get_university(request.META.get('HTTP_HOST')) university = branding.get_university(request.META.get('HTTP_HOST'))
if university is None: if university == 'edge':
return courseware.views.courses(request) return render_to_response('university_profile/edge.html', {})
return render_to_response('university_profile/edge.html', {}) # we do not expect this case to be reached in cases where
# marketing and edge are enabled
return courseware.views.courses(request)
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