re: How I Structure My Flask Apps VIEW POST

re: Hi. Thanks for your questions :) 1-) Actually, this is a habit for me. I never used a factory method in my Flask apps. Also, I don't know what are...

Benefit of using factory methods

Testing. You can have instances of the application with different settings to test every case.

Multiple instances. Imagine you want to run different versions of the same application. Of course you could have multiple instances with different configs set up in your webserver, but if you use factories, you can have multiple instances of the same application running in the same application process which can be handy.

Hmm, can you show an example about factory methods for the newbies :)

Thanks, I'll be waiting for your contribution. Thanks.

code of conduct - report abuse