Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

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

Release History

This version
History Node

0.0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_rest_signature-0.0.2-py3.4.egg (10.2 kB) Copy SHA256 Checksum SHA256 3.4 Egg Apr 30, 2015
django-rest-signature-0.0.2.tar.gz (3.7 kB) Copy SHA256 Checksum SHA256 Source Apr 30, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting