Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[+] Initial stub users app

  • Loading branch information...
commit e0175bc69a162c42ef8abf3fef2fdd21377ced95 1 parent 41a593a
Serge Travin authored
View
2  setwithme/apps/users/__init__.py
@@ -0,0 +1,2 @@
+# -*- coding: utf-8 -*-
+
View
7 setwithme/apps/users/models.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+from django.db import models
+from django.contrib.auth.models import User
+
+class UserProfile(models.Model):
+
+ user = models.OneToOneField(User, db_index=True)
View
6 setwithme/apps/users/urls.py
@@ -0,0 +1,6 @@
+# -*- coding: utf-8 -*-
+
+from django.conf.urls.defaults import *
+
+urlpatterns = patterns('users.views',
+)
View
2  setwithme/apps/users/views.py
@@ -0,0 +1,2 @@
+# -*- coding: utf-8 -*-
+
View
3  setwithme/settings.py
@@ -132,6 +132,7 @@
# 'django.contrib.admindocs',
'core',
+ 'users',
)
# A sample logging configuration. The only tangible logging
@@ -161,6 +162,8 @@
SITE_NAME = 'Setwithme'
SITE_DOMAIN = 'setwith.me'
+AUTH_PROFILE_MODULE = 'users.UserProfile'
+
try:
from settings_local import *
except ImportError:
View
2  setwithme/urls.py
@@ -11,6 +11,8 @@
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
# Examples:
url(r'^$', 'core.views.home', name='home'),
+
+ url(r'^users/$', include('users.urls')),
# url(r'^setwithme/', include('setwithme.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
Please sign in to comment.
Something went wrong with that request. Please try again.