aboutsummaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'accounts')
-rw-r--r--accounts/__init__.py0
-rw-r--r--accounts/models.py3
-rw-r--r--accounts/tests.py16
-rw-r--r--accounts/urls.py6
-rw-r--r--accounts/views.py5
5 files changed, 30 insertions, 0 deletions
diff --git a/accounts/__init__.py b/accounts/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/accounts/__init__.py
diff --git a/accounts/models.py b/accounts/models.py
new file mode 100644
index 0000000..71a8362
--- /dev/null
+++ b/accounts/models.py
@@ -0,0 +1,3 @@
1from django.db import models
2
3# Create your models here.
diff --git a/accounts/tests.py b/accounts/tests.py
new file mode 100644
index 0000000..501deb7
--- /dev/null
+++ b/accounts/tests.py
@@ -0,0 +1,16 @@
1"""
2This file demonstrates writing tests using the unittest module. These will pass
3when you run "manage.py test".
4
5Replace this with more appropriate tests for your application.
6"""
7
8from django.test import TestCase
9
10
11class SimpleTest(TestCase):
12 def test_basic_addition(self):
13 """
14 Tests that 1 + 1 always equals 2.
15 """
16 self.assertEqual(1 + 1, 2)
diff --git a/accounts/urls.py b/accounts/urls.py
new file mode 100644
index 0000000..ead707a
--- /dev/null
+++ b/accounts/urls.py
@@ -0,0 +1,6 @@
1from django.conf.urls import patterns, include, url
2
3
4urlpatterns = patterns('accounts.views',
5 url(r'^profile/$', 'profile', name='profile'),
6)
diff --git a/accounts/views.py b/accounts/views.py
new file mode 100644
index 0000000..2616923
--- /dev/null
+++ b/accounts/views.py
@@ -0,0 +1,5 @@
1from django.shortcuts import render
2
3
4def profile(request):
5 return render(request, "accounts/profile.html")