Read the comments in the code. They will help :)
Everything important is at /box/views.py
Follow instructions to set up a Box Developer Application:
https://box-content.readme.io/v2.0/docs/box-platform
git clone https://github.com/dann815/boxdjangojwt.git
Recommended: virtualenv
python 2.7.10 Note: Does not work with 3.x
django 1.8
pip install boxsdk
pip install boxsdk[jwt]
openssl genrsa -out rsakey.pem 2048
openssl rsa -pubout -in rsakey.pem -out rsapublic.pem
cat rsapublic.pem | pbcopy
Add the public key to your app at https://developers.box.com/->My Apps
Put the private key in your project folder at /box/rsakey.pem
On Mac: Open ~/.bash_profile in a text editor and add the following lines (with your values from developers.box.com)
export BOX_SDK_CLIENTID=1234567890ABCD
export BOX_SDK_CLIENTSECRET=ABCDEFGHI1234
export BOX_SDK_EID=123456
python manage.py runserver
Navigate to
http://localhost:8000/box/ or http://localhost:8000
Contact: DanK@box.com