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 /account | |
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 'account')
-rw-r--r-- | account/__init__.py | 0 | ||||
-rw-r--r-- | account/admin.py | 3 | ||||
-rw-r--r-- | account/models.py | 12 | ||||
-rw-r--r-- | account/tests.py | 3 | ||||
-rw-r--r-- | account/views.py | 3 |
5 files changed, 21 insertions, 0 deletions
diff --git a/account/__init__.py b/account/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/account/__init__.py diff --git a/account/admin.py b/account/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/account/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/account/models.py b/account/models.py new file mode 100644 index 0000000..a3c2b0a --- /dev/null +++ b/account/models.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# +# app 'account' models +# registration, login, etc. +# + +from django.db import models +from django.contrib.auth.models import User + +class UserProfile(models.Model): + user = models.OneToOneField(User) + diff --git a/account/tests.py b/account/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/account/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/account/views.py b/account/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/account/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. |