aboutsummaryrefslogtreecommitdiffstats
path: root/account
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-18 21:18:50 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-18 21:18:50 +0800
commita4d102896cd261ced64316fce45dd264a797a903 (patch)
treef8a06526f5817b7e3f7b7a08de9434766c6b1a9a /account
parenta50364c081a5aa4857223474207c154cb82896ee (diff)
downloaddjango-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__.py0
-rw-r--r--account/admin.py3
-rw-r--r--account/models.py12
-rw-r--r--account/tests.py3
-rw-r--r--account/views.py3
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.