Forums

Setting up flask app

Hi, I am relatively new to web development. I have been creating a flask app on my mac in a virtualenv. I first tried copying the entire project folder (including venv) to my site directory (using GitHub) and then set the venv directory in the webapp page. It said it was running 3.4 and should be 3.8 Then I removed venv directory and the reference to it and installed the packages (I hope all of them?) but still get an undefined error when trying to load page. Any ideas? I can provide code if that would be helpful.

Thanks!

What is the undefined error that you are seeing? Can you show the full stacktrace?

Thanks for your reply. I figured out the problem. 1. The auto installed werkzeug package needed to be downgraded 2. I needed to change the path to my database to show location from root directory and not relative (not sure why)

--harrison

for (2) that is affected by your working directory. but yes full/absolute path would be the most straightforward way to go.