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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4459730be61e6ef02bea8c064e25980f7576d3de5cb2ed45b45e256c349c55d1 |
|
MD5 | fe876887b1b3f4e87995d7b0eaf94348 |
|
BLAKE2b-256 | 4370fdd10d7c04392d731223224615d3490c46e63cde778c03c02f7d047481c4 |
Close
Hashes for django_api_permission-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 753bfb0a80e52a13e16a087969b7c48027016ed03ce4f2d9026e3e5f07260df1 |
|
MD5 | ce28477b0c272f48b3b92302e0199389 |
|
BLAKE2b-256 | 9362650ff0d9178138cb2076794fd8a7b034c12610a364b1c1f4d5ea5960f783 |