Commit fbd0a7b8 authored by Simon Daron's avatar Simon Daron
Browse files

Add distinct view for player

parent 0abd099a
......@@ -12,6 +12,7 @@ urlpatterns = patterns('',
url(r'^emissions/', include('emissions.urls')),
url(r'^ckeditor/', include('ckeditor.urls')),
url(r'^get$', 'panikweb.views.get', name='get'),
url(r'^player$', 'panikweb.views.player', name='player'),
url(r'^admin/', include(admin.site.urls)),
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
......
......@@ -154,3 +154,13 @@ class Get(TemplateView):
return context
get = Get.as_view()
class Player(TemplateView):
template_name = 'player.html'
def get_context_data(self, **kwargs):
context = super(Player, self).get_context_data(**kwargs)
#context['emissions'] = Emission.objects.all().order_by('title')
return context
player = Player.as_view()
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