Flask is a micro-framework for Python based on Werkzeug, Jinja 2 and good intentions.

learn more… | top users | synonyms

3
votes
0answers
31 views

Multi-dictionary API using Python Flask-RESTful

I'm working on a simple online dictionary tool, using Python Flask-RESTful as the RESTful API backend. The dictionary tool is modular, it can handle multiple dictionaries, implemented as independent ...
7
votes
1answer
97 views

Subclassing Flask for Permissions with Google App Engine

I'm trying to set up a very lightweight permission system using Google App Engine and Flask. The end result I am hoping for is that each individual view is its own permission, and in an admin panel ...
4
votes
1answer
108 views

Caching a function view for a day

I am writing a flask app that I will deploy it on Heroku to test it. There is a page that will generate daily photos and information based on a JSON file. The view is valid for 24 hours beginning from ...
1
vote
0answers
153 views

First flask app critique

I just started with Python a month ago, and with Flask this week. This is my first project. I am curious about general style, proper use of Python idioms, and Flask best-practices. ...
1
vote
1answer
131 views

Python flask web app, simplification

I am writing web application using flask framework + mongodb. I have an issue, should I use classes for my mongo entities or just use dictionaries for them. ...
1
vote
2answers
164 views

Simple Python Flash app using Wikidot API to transfer pages between two wikis

Here's a simple Python Flask app. It uses the Wikidot API to transfer pages between two wikis. I'd like to hear your input on the best way to refactor this code. Here are a couple of questions I ...
2
votes
2answers
389 views

Database calls with Python Flask and SQLAlchemy

I am creating a Python Flask webservice and this is basically how I am doing all of my database calls if a webservice needs to interact with the database: ...
10
votes
1answer
1k views

Flask-SQLAlchemy models and unit-testing

This is my first time building anything remotely like a robust database. I'm midway through designing it and I would be grateful if you have suggestions or have found any logical errors. Goal: allow ...
3
votes
1answer
312 views

Website menu with Flask

I wrote some code in Flask for site menu: ...