Skip to content
#

Flask

flask logo

Flask is a web framework for Python, based on the Werkzeug toolkit.

Here are 13,733 public repositories matching this topic...

mitsuhiko
mitsuhiko commented Jul 30, 2011

We do not encourage people to create more than one database connection and to connect to databases in arbitrary extensions. The obvious exception are extensions whose sole purpose is to connect to databases. Dependency resolving is done by the developer. Eg:

app = Flask(__name__)
db = SQLAlchemy(app)
something = SomethingElse(app, db)

The problem comes with blueprints. If Someth

dash
chriddyp
chriddyp commented Jun 8, 2018

When making a simple mistake like:

html.Table('a', 'b')

instead of

html.Table(['a', 'b'])

you get a pretty tough-to-debug error message:

TypeError: __init__() takes at most 2 arguments (3 given)

We should catch these types of errors and provide a better error message

gdbgui
cs01
cs01 commented Mar 24, 2019

gdbgui was started and developed by me in my spare time. It has grown in scope, and gotten more users than I ever expected from all over the world, which is very exciting 🌎. It has been really fun and rewarding to make, and I'm proud of how many developers it has helped to understand and develop their application. College professors list it in tools to learn in class syllabi, engin

Annakan
Annakan commented Oct 28, 2018

Expected Behavior

I expected and the documentation hints has such changing config after loading the setting file is fine, and that if one wants to benefits from the defaults one needs to load them from a file.
But that's not true because propagation of global settings to the domain happens at config file loading time.
And there is no way to tweak the settings before applying them :EveWSGIRe

lordnynex
lordnynex commented Nov 19, 2015

Sorry if this is redundant. Is it possible to include _SIDEBAR.md? This is incredibly useful for README.md but I'd like to preview my wiki changes locally before I look like a chump committing a bunch of broken markdown.

If this is not possible, is there any in browser nav that can be enabled without having to adjust the URL by hand?

wycwyx
wycwyx commented Oct 16, 2015

In menu.py

code

def add_category(self, category, icon="", label="", parent_category=""):
    label = label or category
    if parent_category == "":
        self.menu.append(MenuItem(name=category, icon=icon, label=label))
    else:
        self.find(category).childs.append(MenuItem(name=category, icon=icon, label=label))

In the last line , the 'self.find(category)...' should be '

bug
micha030201
micha030201 commented Aug 29, 2018

FlaskBB has extensive internationalization support, and several translations already. However, there's still much to be desired. After examining flaskbb's translation practices, I've found the following issues:

It's not clear what translators are supposed to do

After digging in the source files, I discovered that flaskbb uses transifex for cro

Created by Armin Ronacher

Released April 1, 2010

Latest release 6 months ago

Repository
pallets/flask
Website
flask.pocoo.org
Wikipedia
Wikipedia

Related Topics

python database heroku
You can’t perform that action at this time.