diff options
Diffstat (limited to 'accounts')
-rw-r--r-- | accounts/__init__.py | 0 | ||||
-rw-r--r-- | accounts/models.py | 3 | ||||
-rw-r--r-- | accounts/tests.py | 16 | ||||
-rw-r--r-- | accounts/urls.py | 6 | ||||
-rw-r--r-- | accounts/views.py | 5 |
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 @@ | |||
1 | from 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 | """ | ||
2 | This file demonstrates writing tests using the unittest module. These will pass | ||
3 | when you run "manage.py test". | ||
4 | |||
5 | Replace this with more appropriate tests for your application. | ||
6 | """ | ||
7 | |||
8 | from django.test import TestCase | ||
9 | |||
10 | |||
11 | class 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 @@ | |||
1 | from django.conf.urls import patterns, include, url | ||
2 | |||
3 | |||
4 | urlpatterns = 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 @@ | |||
1 | from django.shortcuts import render | ||
2 | |||
3 | |||
4 | def profile(request): | ||
5 | return render(request, "accounts/profile.html") | ||