-
-
Save ChristinaMeno/1049676 to your computer and use it in GitHub Desktop.
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment