Skip to content

An example API client using Python and Django, that pulls in data from SNPedia.

Notifications You must be signed in to change notification settings

drdaviddelorenzo/api-example-django

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 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 [email protected]: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

An example API client using Python and Django, that pulls in data from SNPedia.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published