DEV Community

youssef alaa
youssef alaa

Posted on

Library web-app -- cleaning the code.

I started this the way you'd start a minimal flask application (ie: all the code base in one file). This is fine for a simple "hello world" app, but for a project that deals with many view-functions and multiple model-classes, this is terrible. Sooner or later you will end up pulling your hair while scrolling through the code. Having everything separated in it's own file is far better. That way it's easier to debug and maintain.

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay