--- a/swtr.py +++ b/swtr.py @@ -66,6 +66,7 @@ response.headers['Access-Control-Allow-Origin'] = '*' data = {} data_list = [] + print request.form['data'] for i in json.loads(request.form['data']): id = g.collection.insert(i) data['permalink'] = app.config['URL']+'/posts/'+str(ObjectId(id)) --- a/templates/show_entries.html +++ b/templates/show_entries.html @@ -15,8 +15,8 @@ {% endif %}