News for hackers. Stuff that matters.
Re:Create a Simple Music Streaming App with Flask by CraigJPerry on Monday December 09, 2013 @08:27AM (#6874158)

    >> It’s the best practice to use a package instead of a
    >> module for larger applications in Flask instead of a
    >> single python file.
For something as small as this, i'd stay 1 single file. Keep it simple.

If the app gets bigger, at the point where 1 file is becoming painful (and not before) it's trivial to refactor to a module. If you're a single person team, that point may be wayyy further down the line than you'd think.

Keep it simple as possible, you're safe knowing that it's trivial to grow -> module -> blueprints and so on.

There are no comments on this comment yet.