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
https://github.com/chibisov/drf-extensions
https://github.com/niwinz/django-redis
http://www.django-rest-framework.org/api-guide/throttling/#userratethrottle
https://github.com/python-social-auth/social-app-django
python manage.py migrate
python import_category_data.py
python import_goods_data.py