django-rest-signature for multisite
Project description
django-rest-signature是一个多站点的网站签名
Overview
这个包支持 Django REST framework.
Requirements
python(3.4)
Django(1.8)
Django REST Framework (3.1.0)
PyJwt
只在上述环境中测试过
Installation
install using pip
$ pip install django-rest-signature
Settings
在INSTALLED_APPS 中增加 ‘rest_signature’.
INSTALLED_APPS = (
....
'rest_signature',
)
在MIDDLEWARE_CLASSES 中 AuthenticationMiddleware之前增加 ‘rest_signature.middleware.SignatureMiddleware’
MIDDLEWARE_CLASSES = (
...
'rest_signature.middleware.SignatureMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
...
)
Usage
通过request.site获取 site 对象
Issue
对GET和非GET请求未处理
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-rest-signature-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2709fd52bc87bee706a53a29aaf3a9a1e65363697be02cf5750d3d65038e34f4 |
|
MD5 | 565cbbe4c2275a19010e0db58668c4db |
|
BLAKE2b-256 | dec1bd43137b74cb3166f7c780783d40f050eaf5e4e22a58ee66f9aa07f97a29 |
Close
Hashes for django_rest_signature-0.0.2-py3.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8c1891a95fb4b32216bbcca1c400c264124eb382e38fee43b2a0ba60c5d6abf |
|
MD5 | a3cee4317b2c1df552d23afcbf77ec0e |
|
BLAKE2b-256 | 31276863ad898b05c58215fb6f5ae0b5d2fe16c9520c5aaec0d828c3b660ee36 |