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:
TEMPLATE_CONTEXT_PROCESSORS = (
'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 django.contrib import admin
admin.autodiscover()

from user import urls as user_urls

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

11. python manage.py runserver --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.5.1 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

django-user-0.2.0.tar.bz2 (4.0 kB view details)

Uploaded Source

django-user-0.1.2.tar.bz2 (4.0 kB view details)

Uploaded Source

File details

Details for the file django-user-0.2.0.tar.bz2.

File metadata

  • Download URL: django-user-0.2.0.tar.bz2
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-user-0.2.0.tar.bz2
Algorithm Hash digest
SHA256 eb91317dc6a3c0f078ed89ebf21a3a42d6c8886222518470560ad95810ff6d7a
MD5 f9e9a9114d7f7052a9648d1cbd48bd40
BLAKE2b-256 1fafaac06b68d5182f3dcdfe64100ea4167a64d874127b7fd90699f3a849faeb

See more details on using hashes here.

File details

Details for the file django-user-0.1.2.tar.bz2.

File metadata

  • Download URL: django-user-0.1.2.tar.bz2
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-user-0.1.2.tar.bz2
Algorithm Hash digest
SHA256 800e2436960b43e254570a98dd68324971b73f3d653083e4f63eacd72da3bdcc
MD5 99715a635f702846a87413ed320d9f29
BLAKE2b-256 dea2273a964df00fe896d1a4ca0e44e9915ff76057b888efaefa02a54e54f972

See more details on using hashes here.

Supported by

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