Zundrium / django-usda-demo

A demo project using Django USDA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django USDA Demo

A demo project using Django USDA.

Installation

  1. Create a new directory and open it:
  mkdir ~/django-usda
  cd ~/django-usda
  1. Clone this repository:
  git clone https://github.com/Zundrium/django-usda-demo.git
  1. Create a virtual enviornment and activate it:
  virtualenv demoenv
  source demoenv/bin/activate
  1. Go into the project directory:
  cd django-usda-demo
  1. Install required packages:
  pip install -r requirements.txt
  1. Install Django USDA
  pip install git+https://github.com/zundrium/django-usda.git
  1. Download the ASCII version of the 27th release of the USDA Nutrient Database.

  2. Create the tables and import the zip file (This can take up to 10 minutes):

  python manage.py migrate
  python manage.py import_r27 <path_to_zipfile>
  1. Run the development server
  python manage.py runserver
  1. Go to http://localhost:8000/demo/ to see the demo.

About

A demo project using Django USDA

License:MIT License


Languages

Language:Python 100.0%