Skip to content

Instantly share code, notes, and snippets.

View ChristinaMeno's full-sized avatar
😎

Christina Meno ChristinaMeno

😎
  • RedHat
  • San Diego
View GitHub Profile
Velocity Conference 2012
DAY 1, Monday
# Change this to match your user.
username = 'daniel'
from tastypie.models import ApiKey
from django.contrib.auth.models import User
my_user = User.objects.get(username=username)
key, created = ApiKey.objects.get_or_create(user=my_user)
# Now use key.key for the digest password.