diff options
author | Weitian LI <liweitianux@gmail.com> | 2014-04-18 21:18:50 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2014-04-18 21:18:50 +0800 |
commit | a4d102896cd261ced64316fce45dd264a797a903 (patch) | |
tree | f8a06526f5817b7e3f7b7a08de9434766c6b1a9a /page | |
parent | a50364c081a5aa4857223474207c154cb82896ee (diff) | |
download | django-skaschool-a4d102896cd261ced64316fce45dd264a797a903.tar.bz2 |
* updated settings.py, added settings_email.py
* created directories 'static' and 'templates'
* added app 'account', 'notice'
* added app 'demo'
Diffstat (limited to 'page')
-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 | 13 | ||||
-rw-r--r-- | page/views.py | 3 |
6 files changed, 25 insertions, 0 deletions
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..daef1aa --- /dev/null +++ b/page/urls.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +# +# urls.py for app 'page' +# + +from django.conf.urls import patterns, include, url +from django.views.generic.base import TemplateView + +urlpatterns = patterns('', + url(r'^test/$', TemplateView.as_view(template_name='test.html'), + name='test'), +) + diff --git a/page/views.py b/page/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/page/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. |