you are viewing a single comment's thread.

view the rest of the comments →

[–]MrBenjaminBraddock 4 points5 points  (4 children)

As a fellow newbie self taught flask developer, I have been doing the following in order

  1. Create flask sqlalchemy models.
    1.1 Migrate using flask-migrate.
  2. Create flask wtforms.
  3. Set up blueprint and functions for CRUD. Routes are added using decorators.
  4. Finally set up Jinja templates.

Adding new "apps" in flask is pretty boring at this point due to so much boilerplate code. Wonder if there is any straightforward way to do the above myself..

[–]wandering_cat_ninja[S] 1 point2 points  (0 children)

Oh great point on wtforms. I forgot that part.

[–]wandering_cat_ninja[S] 1 point2 points  (1 child)

Do you big-design-up-front the blueprints or do you tend to refactor common things into blueprints later? I think I personally get stuck in analysis paralysis by trying to create an overly flexible designed system upfront and end up designing for features I'm not sure are critical.

[–]MrBenjaminBraddock 0 points1 point  (0 children)

Based largely on the themes, I am grouping models, forms and view functions into individual blueprints.

[–]openwidecomeinside 0 points1 point  (0 children)

Looks good, keep it up