Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/a/d/adhawk-HEAD/adhawk/libs/db_script/management/commands/import_ad_media.py   adhawk(Download)
    def get_youtube_profiles(self):
        mt = MediaType.objects.get(main_url='http://www.youtube.com')
        if TEST:
            return mt,[mt.mediaprofile_set.all()[0]]
        else:

src/a/d/adhawk-HEAD/adhawk/libs/db_script/reporting_kb_updater.py   adhawk(Download)
def make_media_profile_object(mpr):
    #hard coded, just doing youtubez for now
    media_type = MediaType.objects.get(main_url='http://www.youtube.com')
    media_profile = MediaProfile()
    media_profile.url=mpr.youtube_channel_url