Flask Tutorial #7 - Application Factory Function

preview_player
Показать описание
Defining a main module entry point is great for development. But, if you plan on releasing your Flask application in a production setting, you need to be using an Application Factory. This tutorial walks you through setting up a basic factory function and using it to launch an instance of your application.

Рекомендации по теме
Комментарии
Автор

You deserve more subscribers! Keep up the great work, this really helped me out!

holyproton
Автор

Wow! I will gonna start this series soon. Keep going, man! I am your new subscriber.

vasudev
Автор

Nice tutorial, any plans to continue this series?

marksie
Автор

Discovered this video today, thanks for explaining in such a simple way the application factory, I'm sad to see that this was the last video in the series :/ did you ever uploaded them somewhere else? If yes I'd love to watch them.

rodrigoamattei
Автор

Good one what's the use of instance folder ?

SanteeRocks
Автор

Very useful, if we don't use sqlalchemy what is the command to register a database.py module in __ini__.py ?

soldadopreciso
Автор

for some reason i face this error...

Error: Could not locate a Flask application. You did not provide the "FLASK_APP" environment variable, and a "wsgi.py" or "app.py" module was not found in the current
directory.

saviosousa
Автор

I am hoping you can help. When I use the flask run command I get the following error:
* Serving Flask app 'carbattery'
* Environment: development
* Debug mode: off
Usage: flask run [OPTIONS]
Try 'flask run --help' for help.

Error: Could not import

Any idea what could be causing this error

championkerrfromja