diff options
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. |