Skip to main content

A user app that introduce simple sign-in and sign-up.

Project description

django-user
-----------
1. django-admin.py startproject project
2. Configure your database in your settings file:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'project.db',
}
}

3. Install the package to your python site-packages folder or just use it as a module in your project.
4. Add 'user' to INSTALLED_APPS in your settings file.
5. Install django-coffee to your python site-packages folder or just use it as a module in your project.
6. Add 'django.contrib.admin' to INSTALLED_APPS in your settings file.
7. Configure yourt settings file further:
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.request',
'django.core.context_processors.static',
'django.contrib.messages.context_processors.messages'
8. In settings.py remember to configure LOGIN_URL
9. python manage.py syncdb --settings=project.settings
10. In your projects urls add the following code:
from project.user import urls as user_urls

urlpatterns = patterns('',
...
url(r'^', include(user_urls)),
url(r'^admin/', include(admin.site.urls)),
...
)

11. python manage.py migrate --run-syncdb --settings=project.settings
12. Add optional customizable messages to your settings file, USER_MESSAGE_SIGN_IN, USER_MESSAGE_SIGN_UP, USER_MESSAGE_PROFILE, USER_MESSAGE_CHANGE_PASSWORD.
13. http://127.0.0.1:8000/sign-in
14. Optionally add the following options.
1. USER_MESSAGE_SIGN_IN_ERROR = 'Incorrect login!'
2. AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend', 'user.backends.EmailAuthBackend',)

In order to loginwith your email instead.

14. Django 1.9 compatible
15. See http://pythonhosted.org/django-user, for a showcase

Changelog:
----------
0.0.2
Bootstrap implemented
Nice feature design
More navigation

0.0.3
Profile and Sign Out processes

0.0.5
Change Password implementation

0.0.6
Optional customizable messages

0.1.0
Depends now on django-coffee.

0.1.1
Login with email option

0.1.2
Depends now on django-coffee templates.

0.2.0 Make it usable only to Django >= 1.9

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page