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.

Discussion (0)