diff options
Diffstat (limited to 'page')
-rw-r--r-- | page/README.txt | 5 | ||||
-rw-r--r-- | page/__init__.py | 0 | ||||
-rw-r--r-- | page/admin.py | 3 | ||||
-rw-r--r-- | page/models.py | 3 | ||||
-rw-r--r-- | page/tests.py | 3 | ||||
-rw-r--r-- | page/urls.py | 17 | ||||
-rw-r--r-- | page/views.py | 15 |
7 files changed, 46 insertions, 0 deletions
diff --git a/page/README.txt b/page/README.txt new file mode 100644 index 0000000..37360b3 --- /dev/null +++ b/page/README.txt @@ -0,0 +1,5 @@ +App page + +Places skaschool pages. +There is also an app 'notice' to deal with notice and related pages. + diff --git a/page/__init__.py b/page/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/page/__init__.py diff --git a/page/admin.py b/page/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/page/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/page/models.py b/page/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/page/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/page/tests.py b/page/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/page/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/page/urls.py b/page/urls.py new file mode 100644 index 0000000..8c195e9 --- /dev/null +++ b/page/urls.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +# +# urls.py for app 'page' +# + +from django.conf.urls import patterns, include, url +from django.views.generic.base import TemplateView, RedirectView +from django.core.urlresolvers import reverse_lazy + +urlpatterns = patterns('', + # test page + url(r'^test/$', TemplateView.as_view(template_name='test.html'), + name='test'), + # index page + url(r'^$', RedirectView.as_view(url=reverse_lazy('index'))), +) + diff --git a/page/views.py b/page/views.py new file mode 100644 index 0000000..15b7575 --- /dev/null +++ b/page/views.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- + +""" +App 'page' views +""" + +from django.shortcuts import render +from django.views.generic.base import TemplateView + + +###### class-based views ###### +## IndexView: used in 'django_skaschool/urls' as index + + + |