def home(request): # event = Event() # event.name = 'osdConf' # event.facebook = 'osdConf' # event.twitter = 'osdConf' # event.hashtag = 'osdConf' # event.primary_color = 'osdConf' # event.event_id = 'osdconf' # links = [] # links.append( 'http://osdconf.in' ); # links.append( 'http://facebook.com/osdconf' ); # event.save() # event = Event.objects.get(id=1) # pdb.set_trace() terms = ['osdc', '#osdc', 'osdconf' , '#osdconf'] query = construct_query(terms) res_json = get_photos([query]) return render( request, "index.html" )
def get_photos_json(request): terms = ['osdc', '#osdc', 'osdconf' , '#osdconf'] query = construct_query(terms) return HttpResponse(get_photos([query]), content_type="application/json")