Django Accounts
===============
Django Accounts re-implements several views from Django contrib auth to use the messageing framework instead stand-alone pages for simple messages. It also includes a email authentication backend.
Installation
------------
Run `pip install django-accounts-cbv`
Add `accounts` to your `INSTALLED_APPS` setting:
```python
INSTALLED_APPS = (
...
'accounts',
)
```
To your sites `url.py` add:
```python
urlpatterns = patterns('',
...
url(r'^accounts/', include('accounts.urls')),
)
```
Authentication Backends
----------------------------
###EmailBackend
The email authentication backend will allow users to login with the email address and password.
To enable it add `'accounts.auth_backends.EmailBackend'` to your `AUTHENTICATION_BACKENDS` setting:
```python
AUTHENTICATION_BACKENDS = (
'accounts.auth_backends.EmailBackend',
'django.contrib.auth.backends.ModelBackend',
)
```
Middlewares
-----------
###LoginRequiredMiddleware
Require authentication for all views.
To enable it add `'accounts.middleware.LoginRequiredMiddleware'` to your `MIDDLEWARE_CLASSES` setting:
```python
MIDDLEWARE_CLASSES = (
...,
'accounts.middleware.LoginRequiredMiddleware',
)
```
Views
-----
###Login
Login inherits from FormView for easy extensibility.
###Logout
Logout inhertis from RedirectView for easy extensibility. It also displays a logout message.
###PasswordReset
PasswordReset inherits from FormView for easy extensibility. It displays a message once a reset request is submited.
###PasswordResetConfirm
PasswordResetConfirm inherits from FormView for easy extensibility. It displays a message once the user has changed their password.
###UserUpdate
UserUpdate inherits from UpdateView for easy extensibility. It allows a user change their account information.
Forms
-----
###UserForm
A form for changing an existing user's username and/or password. The password is optional and the form will only attempt to update the password if text is in the password input and it matches the confimation input.
===============
Django Accounts re-implements several views from Django contrib auth to use the messageing framework instead stand-alone pages for simple messages. It also includes a email authentication backend.
Installation
------------
Run `pip install django-accounts-cbv`
Add `accounts` to your `INSTALLED_APPS` setting:
```python
INSTALLED_APPS = (
...
'accounts',
)
```
To your sites `url.py` add:
```python
urlpatterns = patterns('',
...
url(r'^accounts/', include('accounts.urls')),
)
```
Authentication Backends
----------------------------
###EmailBackend
The email authentication backend will allow users to login with the email address and password.
To enable it add `'accounts.auth_backends.EmailBackend'` to your `AUTHENTICATION_BACKENDS` setting:
```python
AUTHENTICATION_BACKENDS = (
'accounts.auth_backends.EmailBackend',
'django.contrib.auth.backends.ModelBackend',
)
```
Middlewares
-----------
###LoginRequiredMiddleware
Require authentication for all views.
To enable it add `'accounts.middleware.LoginRequiredMiddleware'` to your `MIDDLEWARE_CLASSES` setting:
```python
MIDDLEWARE_CLASSES = (
...,
'accounts.middleware.LoginRequiredMiddleware',
)
```
Views
-----
###Login
Login inherits from FormView for easy extensibility.
###Logout
Logout inhertis from RedirectView for easy extensibility. It also displays a logout message.
###PasswordReset
PasswordReset inherits from FormView for easy extensibility. It displays a message once a reset request is submited.
###PasswordResetConfirm
PasswordResetConfirm inherits from FormView for easy extensibility. It displays a message once the user has changed their password.
###UserUpdate
UserUpdate inherits from UpdateView for easy extensibility. It allows a user change their account information.
Forms
-----
###UserForm
A form for changing an existing user's username and/or password. The password is optional and the form will only attempt to update the password if text is in the password input and it matches the confimation input.
Metadata
Release files for django-accounts-cbv 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-accounts-cbv-2.0.tar.gz | 6.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_accounts_cbv-2.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 16.9 kB
Release files / django-accounts-cbv-2.0.tar.gz
| Download URL | django-accounts-cbv-2.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed040ec06b6c94289b2ee5116e7b2622acd8beec64bf5908c6f306cae3ad907a
|
|
BLAKE2b-256 checksum How to use checksums |
f4bab50b199a4f1341d142dc57030812d45c3e90531f5b931e61b289ea6245fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_accounts_cbv-2.0-py2-none-any.whl
| Download URL | django_accounts_cbv-2.0-py2-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
4b213c73d2d9deacdd842b9804884cbdce17f1afe09480626a9d817166f89557
|
|
BLAKE2b-256 checksum How to use checksums |
cad7f2e03df5d6fa7fc00e6f0c19e8f3a580b455e5e33559d6a990a08f7b0f28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-accounts-cbv 2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.