Created
January 21, 2016 20:50
-
-
Save mcotton/de151d3535107bb3189e to your computer and use it in GitHub Desktop.
Pull Media by Project key
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
import os | |
import pprint | |
from google.appengine.api import memcache | |
from google.appengine.api import mail | |
from google.appengine.api import urlfetch | |
from google.appengine.ext import ndb | |
from google.appengine.api import search | |
from core.models import * | |
k = ndb.Key('Project', 5812155903377408) | |
m = Media.query(Media.project==k).fetch(10) | |
#pprint.pprint(k) | |
#pprint.pprint(m) | |
for i in m: | |
pprint.pprint(i.file_name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment