Organizing a Flask Project Beyond Single File

preview_player
Показать описание
In this video I give you one method for organizing your Flask folder structure and projects. I use blueprints for this method.

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

This is a fantastic video I wish more people made. Getting something to work can be fairly easy, but structuring the project logically comes only with experience. This is going to help a lot of people (including me).

stephencollins
Автор

Great job Anthony this is exactly what I was looking for

rhettsmedia
Автор

TQ sir, this is really awesome flask structure to work with.

prabhashswain
Автор

anthony i love your teaching. Your code is so clean

md.akib
Автор

This video is sooo helpful, for anyone who wants to restructure into folders in the future just change .extensions to ..extensions.

Also for me I had to import the views after I inited the db with the app

harshasomisetty
Автор

I have multiple applications in blueprint structure, but I'm struggling to access this db object inside applications and use it to create tables.
I want to create model.py file for each application separately

MohamedAshraf-zsnv
Автор

hi bro! i want to selected file path or selected folder how can i do ?? (Without save file)

panzorax.
Автор

I read on a SO post that one should use the already "initialized" db object to create the db model class. Although I structured my app the same way you did, I didn't have issues with my app. Everything was all good.
Is it recommended to use your method? And how about extensions that need extra configuration after their "extension.init_app()" call

lator
Автор

Very useful. Just one question -> how to create database from console with create_app and .extensions. Thanks for your for your work and insights

martintichy
Автор

Hi Anthony,
How do I setup a project with multiple app and blueprints and setup flask dance for all of them .

admaxcool
Автор

Hi Anthony i have a small question how will i add data to my db in views.py
I import db from extension
And did db.session.add()

And it in giving me an error saying that
Application not found

drac
Автор

how to setting port or host in this pattern

muasx
Автор

File "C:\Users\User\Desktop\Flask\clean\app_stracture\__init__.py", line 3, in <module>
from .views import main
ImportError: attempted relative import with no known parent package <---am getting this error

lawrencekatuva
Автор

Hey mate....cool video....but what if I want to use a class of different flask project, how can I import it ??note: they both are in different local disc's say E and F

kishoreandra
Автор

Basic question (but I am a newer user): what is blueprint?

VeronicaSantos