From debff91e06a05ff54c961f0e789848c4d582e82f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 30 Oct 2013 12:24:25 +0100 Subject: [PATCH 1/1] Skelton of the contest page --- edumed/settings.d/30-apps.py | 1 + edumed/urls.py | 1 + wtem/__init__.py | 0 wtem/templates/wtem/main.html | 1 + wtem/urls.py | 6 ++++++ wtem/views.py | 4 ++++ 6 files changed, 13 insertions(+) create mode 100644 wtem/__init__.py create mode 100644 wtem/templates/wtem/main.html create mode 100644 wtem/urls.py create mode 100644 wtem/views.py diff --git a/edumed/settings.d/30-apps.py b/edumed/settings.d/30-apps.py index 7091ff1..f7defa1 100644 --- a/edumed/settings.d/30-apps.py +++ b/edumed/settings.d/30-apps.py @@ -3,6 +3,7 @@ INSTALLED_APPS = ( 'curriculum', 'catalogue', 'comment', + 'wtem', 'fnpdjango', 'south', diff --git a/edumed/urls.py b/edumed/urls.py index 059821b..fb09204 100644 --- a/edumed/urls.py +++ b/edumed/urls.py @@ -15,6 +15,7 @@ urlpatterns = patterns('', url(r'^forum/', include('forum.urls')), url(r'^forum/', include('pybb.urls', namespace='pybb')), url(r'^kompetencje/', include('curriculum.urls')), + url(r'^wtem/', include('wtem.urls')), ) diff --git a/wtem/__init__.py b/wtem/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/wtem/templates/wtem/main.html b/wtem/templates/wtem/main.html new file mode 100644 index 0000000..22f919d --- /dev/null +++ b/wtem/templates/wtem/main.html @@ -0,0 +1 @@ +{% extends 'base_super.html' %} diff --git a/wtem/urls.py b/wtem/urls.py new file mode 100644 index 0000000..4fc156e --- /dev/null +++ b/wtem/urls.py @@ -0,0 +1,6 @@ +from django.conf.urls import patterns, url +from .views import main + +urlpatterns = patterns('', + url(r'^$', main, name = 'wtem_main') +) \ No newline at end of file diff --git a/wtem/views.py b/wtem/views.py new file mode 100644 index 0000000..ae1f64b --- /dev/null +++ b/wtem/views.py @@ -0,0 +1,4 @@ +from django.shortcuts import render + +def main(request): + return render(request, 'wtem/main.html') \ No newline at end of file -- 2.20.1