Skip to content

Zundrium/django-usda-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages