Basic auth utilities for Django.
Project description
Basic auth utilities for Django.
Requires
Tested under…
Python
3.4
Django
1.7
1.8
Installation
pip install django-basicauth
Usage
from basicauth.decorators import basic_auth_required
@basic_auth_required
def myview(request):
...
or by a middleware.
MIDDLEWARE_CLASSES = (
'basicauth.middleware.BasicAuthMiddleware',
...
)
Settings
BASICAUTH_USERS (required): Dictionary including keys as username and values as passwords.
BASICAUTH_REALM: realm string, default is “Secure resource”.
Changes
0.2 (2016-03-31)
Added BasicAuthMiddleware https://github.com/hirokiky/django-basicauth/pull/3
0.1 (2015-04-20)
Initial
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-basicauth-0.2.tar.gz
(3.6 kB
view details)
File details
Details for the file django-basicauth-0.2.tar.gz.
File metadata
- Download URL: django-basicauth-0.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25a3cf94219b3e301cc82f285c1cc677ae06f824b36990d7bd019c87beff258e
|
|
| MD5 |
b6ade517b70c185bf385698178ef87e4
|
|
| BLAKE2b-256 |
9c3a84a3311061248fb4de5219f1bbd2755bcadfd5517d05f739e9da2ae9b004
|