semvec/pypi-packages huggingface dataset:
django-rest-signature 0.0.2
django-rest-signature for multisite
License: BSD License

**django-rest-signature是一个多站点的网站签名**

Overview
---------
这个包支持  `Django REST framework. <http://www.django-rest-framework.org/>`_

|

Requirements 
----------------
* python(3.4)
* Django(1.8)
* Django REST Framework (3.1.0)
* PyJwt

|

**只在上述环境中测试过**

Installation
----------------

install using pip

.. code-block:: bash

 $ pip install django-rest-signature

|

Settings
----------

在INSTALLED_APPS 中增加 **'rest_signature'**.

.. code-block:: python

 INSTALLED_APPS = (
     ....
     'rest_signature',
 )

|

在MIDDLEWARE_CLASSES 中 AuthenticationMiddleware之前增加 **'rest_signature.middleware.SignatureMiddleware'**

.. code-block:: python

 MIDDLEWARE_CLASSES = (
     ...
     'rest_signature.middleware.SignatureMiddleware', 
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     ...
 )
 
|


Usage
----------

通过request.site获取 site 对象

|

Issue
------

1. 对GET和非GET请求未处理