This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Velocity Conference 2012 | |
DAY 1, Monday | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |