src/hdalab/views/pages.py
changeset 675 d68e7b3a2e4f
parent 636 cc2f7294f1d2
child 676 111906d4c8b0
--- a/src/hdalab/views/pages.py	Mon Apr 04 17:04:14 2016 +0200
+++ b/src/hdalab/views/pages.py	Thu Mar 31 14:13:00 2016 +0200
@@ -5,6 +5,7 @@
 from django.shortcuts import render_to_response
 from django.template import RequestContext
 from django.views.generic.base import TemplateView
+from django.conf import settings
 import user_agents
 
 from hdabo.models import Datasheet, TaggedSheet
@@ -86,5 +87,12 @@
             context['add_kanji_font'] = True
         else:
             context['add_kanji_font'] = False
-
+        
+        if hasattr(settings, 'RENKAN_TUTORIAL_MP4'):
+            context['video_mp4'] = settings.RENKAN_TUTORIAL_MP4
+        if hasattr(settings, 'RENKAN_TUTORIAL_WEBM'):
+            context['video_webm'] = settings.RENKAN_TUTORIAL_WEBM
+        if hasattr(settings, 'RENKAN_TUTORIAL_OGG'):
+            context['video_ogg'] = settings.RENKAN_TUTORIAL_OGG
+        
         return context