Skip to content

nandusekarv10/vedatest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

api-example-django

This is a Django app built on the 23andMe API and Django 1.5.4 (pull requests for newer versions appreciated), that also pulls in data from SNPedia.

Clone the repo:

git clone git@github.com:23andMe/api-example-django.git

Go into the directory, and setup a virtual environment with python:

cd api-example-django && virtualenv . --no-site-packages

Activate your virtualenv: source bin/activate

Install the required packages with pip:

pip install -r requirements.txt

Change CLIENT_ID, CLIENT_SECRET, and CALLBACK_URL in apidemo/settings.py, to match your dev credentials from http://api.23andme.com/dev/. I changed my CALLBACK_URL to http://localhost:8000/auth/callback/ because that's where I run the local Django server.

Change SECRET_KEY to something unique.

Create the session databases:

cd apidemo && python manage.py syncdb

And finally, run the server on localhost:

python manage.py runserver

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published