I'm currently writing a web application in Python using the Flask web framework. I'm really getting used to just putting everything in the one file, unlike many other projects I see where they have different directories for classes, views, and stuff. However, the Flask example just stuff everything into the one file, which is what I seem to be going with.
Is there any risks or problems in writing the whole web app in the one single file, or is it better to spread out my functions and classes across separate files?