/drf-react

Combining Django Rest Framework and React, using webpack.

Primary LanguageJavaScript

Django Rest Framework + React = Awesome

Example code for the tutorial found at geezhawk.github.io.

To try it yourself, clone the repo and run:

  • npm install
  • pip install -r requirements.txt
  • export DJANGO_SECRET_KEY='your-secret-key'
  • ./node_modules/.bin/webpack --config webpack.config.js
  • python manage.py runserver