def post(self): content = self.request.get('content') for line in content.split('\n'): spelling, meaning = line.split(',') word = Word() word.spelling = spelling word.meaning = meaning word.put() self.redirect('/words')