/recipes-drf-pycones19

Tutorial for creating an API for cooking recipes using DRF

Primary LanguagePython

Steps to perform BEFORE attending the tutorial session

  1. Clone this repo:
git clone git@github.com:dukebody/recipes-drf-pycones19.git
  1. Create a virtual environment for Python 3 and activate it.

Example with virtualenvwrapper:

mkvirtualenv -p python3 drf-recipes

See other options here.

  1. Install desired versions for Django and DRF:
pip install -r requirements.txt
  1. Sync the database for first time:
python manage.py migrate
  1. Create a superuser:
python manage.py createsuperuser --email admin@example.com --username admin
  1. Start the development server:
python manage.py runserver
  1. Open up the browser and login to the admin site at http://127.0.0.1:8000/admin/.