mmumshad / simple-webapp

Simple Web Application
55 stars 504 forks source link

Error in App.py flask call #1

Open StevenNexus opened 6 years ago

StevenNexus commented 6 years ago

Change

from flask.ext.mysql import MySQL

to

from flaskext.mysql import MySQL

roman0mx commented 4 years ago

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

rajaniesh commented 3 years ago

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

adeel2020 commented 3 years ago

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

rajaniesh commented 3 years ago

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

adeel2020 commented 3 years ago

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