Skip to content

cucy/restsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TokenAuthentication

INSTALLED_APPS = (
    ...
    'rest_framework.authtoken'
)



manage.py@restsx > migrate

http://www.django-rest-framework.org/api-guide/authentication/#tokenauthentication

火狐httprequest插件
http://127.0.0.1:8000/api-token-auth/



{

"username": "admin",
"password": "123456abc"
}

http://projectsedu.com/archives/
jwt 
http://lion1ou.win/2017/01/18/
pip install djangorestframework-jwt==1.11.0

drf缓存

https://github.com/chibisov/drf-extensions


redis

https://github.com/niwinz/django-redis


限速

http://www.django-rest-framework.org/api-guide/throttling/#userratethrottle

第三方认证 oauth

   https://github.com/python-social-auth/social-app-django


安装步骤

python manage.py migrate

python import_category_data.py
python import_goods_data.py 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published