Python Forum
[FLASK] How to structure the code in my case ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[FLASK] How to structure the code in my case ?
#5
(May-02-2020, 10:03 AM)Larz60+ Wrote: I would like to recommend the flask mega tutorial:
https://blog.miguelgrinberg.com/post/the...ello-world
it's the most complete flask tutorial that I know of.

Thanks for the flask tutorial !
I'll read through, just to be sure I didnt miss any important stuff in the yt "guide " !
Much appreciated!

(May-03-2020, 05:03 PM)experimental Wrote: this is up to you, what i would do is that i would just add a new file scrapping.py and write the code there.
after that, you can just import the clases/functions from this module to the routes.py if you will want to do new routing for the output page

Thanks for the reply. Since I want to add some logic aswell, I assume one file would be rather messy than structured.

I think I'll just add a " src " folder and throw all files into that, and import the needed functions needed for the output as you suggested.

Again, thanks for your answer.
Reply


Messages In This Thread
RE: [FLASK] How to structure the code in my case ? - by Fre3k - May-04-2020, 04:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Flask return http status code 200 but web browser not recive supernoobs 2 10,987 Dec-29-2018, 09:27 PM
Last Post: Unisoftdev
  string manipulation , code structure maxx 2 2,731 Feb-22-2018, 04:49 PM
Last Post: ebngrtr083
  starting with flask: code does not work Peter_EU 2 3,532 Oct-20-2017, 05:35 PM
Last Post: Peter_EU
  how to place Flask code on a public web server rarevesselt 6 7,083 Oct-04-2017, 07:32 AM
Last Post: rarevesselt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020