I have been developing by pushing to Heroku – this is a little time consuming.
What is a faster approach to develop – using Flask?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simplest way is to develop on your own machine is to run it locally:
Make sure that your
app.runcall has the keyword argumentdebugset toTrueso you get automatic reloading when you edit your application. (e. g.app.run(debug=True)).You can now visit localhost:5000 in your browser and edit the files on disk and see immediate changes (and errors).
If you don’t already have Flask installed on your local machine this may fail with an
ImportError. In which case, simply ensure that you have virtualenv and pip installed on your machine and then do the following: