REST framework tutorial
This is Brent O'Connor's code from the REST framework tutorial.
Environment Setup
-
Clone and checkout the code
cd ~ git clone https://github.com/epicserve/rest-framework-tutorial.git cd rest-framework-tutorial
-
Create a python virtualenv
virtualenv env source env/bin/activate
-
Install requirements
pip install -r requirements.txt
-
Run migrate
./manage.py migrate
-
Create a user
./manage.py createsuperuser
-
Run the development server
./manage.py runserver