DEV Community

Discussion on: Python CRUD Rest API using Flask, SQLAlchemy, Postgres, Docker, Docker Compose

Collapse
 
krishnaa192 profile image
krishnaa192

Is it good method to add all code in one file??Is it not preferred method add models and routes in different file,like Django?

Collapse
 
francescoxx profile image
Francesco Ciulla

it depends on the complexity of the project. for bigger ones, for sure! in this case, I go with the simpliciy of having less files and I focus on the dockerization of the project