simple-webapp icon indicating copy to clipboard operation
simple-webapp copied to clipboard

Error in App.py flask call

Open StevenNexus opened this issue 6 years ago • 5 comments

Change

from flask.ext.mysql import MySQL

to

from flaskext.mysql import MySQL

StevenNexus avatar Sep 19 '18 21:09 StevenNexus

Hi.

We choose the Docker option to the lab.

But in this option appear one error at time of:

pip install flask

The error its cause for unset LOCALE env's

To fix this error we just add an:

sudo apt-get install language-pack-XXX

(in our case is sudo apt-get install language-pack-en)

And with this add, the rest of your instruccion work very well

Best regards

roman0mx avatar Jul 29 '20 03:07 roman0mx

These steps does not work when I executed the steps provided in the udemy course and my application is not browsing

rajaniesh avatar May 14 '21 21:05 rajaniesh

Please try sample repository at https://github.com/openshift/django-ex.git

adeel2020 avatar Jun 01 '21 08:06 adeel2020

Can you explain step by step what do we need to do?

rajaniesh avatar Jun 01 '21 10:06 rajaniesh

please note that updated repository for this application with flask module is at https://github.com/mmumshad/simple-webapp-flask.git. you just need to clone this. if you are using Openshift, Select your project and browse catalog. Click Next and Give the project name and copy this link in Git Repository Field. Screen Shot 2021-06-01 at 6 46 14 PM

adeel2020 avatar Jun 01 '21 14:06 adeel2020