def init_app(request): if request.method == 'GET': User.create_admin('admin', 'aos').put() Room.init_rooms() if not Talk.all().count(1) > 0: talk = Talk(title = 'Android', session=1) talk.set_room(Room.get_rooms()[0]) talk.put() talk = Talk(title = 'Kanban', session=5) talk.set_room(Room.get_rooms()[1]) talk.put() if not Attendant.all().count(1) > 0: bill = Attendant.create('Bill', 'Gates', '*****@*****.**', 'Zaragoza', False) bill.twitter_id = 'fbgblog' bill.set_as_speaker() bill.put() richard = Attendant.create('Richard', 'Stallman', '*****@*****.**', 'Pamplona', True) richard.twitter_id = 'GNUplusLINUX' richard.set_as_speaker() richard.put() return HttpResponse("App ready to rumble...", mimetype="text/plain")