From 3b7b236d331da3cb2d859f5106155ed67f9c0eb9 Mon Sep 17 00:00:00 2001 From: Tomas Gavenciak Date: Sat, 14 Mar 2015 22:52:45 +0100 Subject: [PATCH] Add test seminar template --- seminar/templates/seminar/problem.html | 20 ++++++++++++++++++++ seminar/urls.py | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 seminar/templates/seminar/problem.html create mode 100644 seminar/urls.py diff --git a/seminar/templates/seminar/problem.html b/seminar/templates/seminar/problem.html new file mode 100644 index 00000000..b8731efa --- /dev/null +++ b/seminar/templates/seminar/problem.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{% load cms_tags staticfiles sekizai_tags menu_tags %} + +{% block content %} +
+

Problém {{ problem.nazev }}

+ +

Text

+ {% render_placeholder problem.text_problemu %} + + {% if True %} +
+

Text - org

+ {% render_placeholder problem.text_problemu_org %} +
+ {% endif %} + +
+{% endblock content %} + diff --git a/seminar/urls.py b/seminar/urls.py new file mode 100644 index 00000000..79b55192 --- /dev/null +++ b/seminar/urls.py @@ -0,0 +1,6 @@ +from django.conf.urls import patterns, url +from . import views + +urlpatterns = patterns('', + url(r'^problem/(?P\d+)/$', views.ProblemView.as_view(), name='problem'), +)