Skip to content
Tutorial for creating an API for cooking recipes using DRF
Python
Branch: master
Clone or download
Pull request Compare This branch is even with dukebody:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tutorial
.gitignore
README.md
manage.py
requirements.txt

README.md

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/.
You can’t perform that action at this time.