A Django api permission manager that helps you custom api url in regular expression and control access.
Project description
Django-API-Permission
1. Intro
A Django api permission manager that helps you custom api url in regular expression and control access.
2. Quick Start
2.1 Install
pip install django-api-permission
2.2 add to INSTALLED_APPS and MIDDLEWARE
INSTALLED_APPS = [
...
'api_permission',
...
]
MIDDLEWARE = [
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
...
'api_permission.middleware.APIPermCheckMiddleware',
]
2.3 migrate
./manage.py migrate api_permission
2.4 API_PREFIX
You can custom API_PREFIX
in settings.py to only check the API starts with API_PREFIX, default is /api/
.
3. Demo
3.1 list
3.2 edit
3.3 result
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
Built Distribution
Close
Hashes for django-api-permission-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | af734f11984b40e15039e4eca1977e375d2c848c722effc4b85998d073dd0c8d |
|
MD5 | 48f0a4a514ddb5b8dfa52a20b3657637 |
|
BLAKE2b-256 | be06191bb579ffbc2ee0d847b3dfa48afd21170cde789026e6619d4a76bea90d |
Close
Hashes for django_api_permission-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5fd0a393ba708da1d0ff3c7029acb855f48e3c99d70a8693fd0371764389045 |
|
MD5 | 9cf0e31bfae525bb6d76ef47189bedac |
|
BLAKE2b-256 | 2c11c19ab7a939754a2243da2891953671bb32166160198f14bfbd1997cb3d17 |