Commit 6d01c759 authored by Adrián Ribao's avatar Adrián Ribao
Browse files

changed package name

parent 8dd887c9
build
*.pyc
.project
.pydevproject
......@@ -8,3 +9,4 @@ env/
.coverage
.noseids
/docs/build
*egg-info
recursive-include docs *
recursive-include django_users/locale *
recursive-include django_users/templates *
prune docs/build
#coding=utf-8
from django.contrib.gis import admin
#from perfiles.models import Activacion
#from django_users.models import Activacion
#class ActivacionAdmin(admin.ModelAdmin):
#pass
......
#coding=utf-8
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from perfiles.urls import urlpatterns as baseurlpatterns
from perfiles.backends.confirmationemail.views import Activate, CreateUser
from common.forms import RegistrationForm
from django_users.urls import urlpatterns as baseurlpatterns
from django_users.backends.confirmationemail.views import Activate, CreateUser
from django_users.forms import CreateUserForm
urlpatterns = patterns('',
url(r'^register/$',
CreateUser.as_view(form_class=RegistrationForm),
CreateUser.as_view(form_class=CreateUserForm),
name='register'
),
url(r'^activation-sent/$',
......
......@@ -2,7 +2,7 @@
"""
This backend creates a deactivated user, and sends an email with the confirmation code.
"""
from perfiles.views import CreateUserBase
from django_users.views import CreateUserBase
from django.template import Context, loader
#from django.core.signing import TimestampSigner, BadSignature, SignatureExpired
from django.contrib.auth import authenticate, login
......
#coding=utf-8
from django.conf.urls.defaults import *
from perfiles.urls import urlpatterns as baseurlpatterns
from perfiles.backends.simple.views import CreateUser
from django_users.urls import urlpatterns as baseurlpatterns
from django_users.backends.simple.views import CreateUser
urlpatterns = patterns('',
url(r'^register/$',
......
......@@ -3,7 +3,7 @@
This backend just create the user
"""
from perfiles.views import CreateUserBase
from django_users.views import CreateUserBase
from django.contrib.auth.models import User
class CreateUser(CreateUserBase):
......
......@@ -2,7 +2,7 @@
from django.views.generic.edit import CreateView
from django.views.generic.base import View
from django.contrib.auth.models import User
from perfiles.forms import CreateUserForm
from django_users.forms import CreateUserForm
from django.utils.importlib import import_module
from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
......@@ -42,7 +42,7 @@ class Register(View):
is raised.
"""
module = getattr(settings, 'PERFILES_BACKEND', 'perfiles.backends.simple')
module = getattr(settings, 'PERFILES_BACKEND', 'django_users.backends.simple')
module_views = '%s.views' % (module, )
try:
......
......@@ -11,6 +11,22 @@ Contents:
.. toctree::
:maxdepth: 2
Installation
============
pip install django-users
Add 'django-users' to INSTALLED_APPS
Add (r'^users/', include('django_users.urls'))
url(r'^users/', include('django_users.backends.confirmationemail.urls')),
to urls.py
Usage
=====
Indices and tables
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment