While implementing any project from scratch, you are free to design the scaffolding of your project. We are going to follow the scaffolding shown in the following screenshot:
Let's look at each directory and its uses in detail:
- .env: This is our virtualenv directory, which has been created by the virtualenv command.
- auth: We are going to create a standalone generic authentication module using the Flask-Login and Flask-SqlAlchemy extensions.
- config: Here, we are going to create some configuration and generic database models, which may be needed by other modules.
- static: It's Flask standard practice to put the static content under ...