Open StevenNexus opened 6 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
These steps does not work when I executed the steps provided in the udemy course and my application is not browsing
Please try sample repository at https://github.com/openshift/django-ex.git
Can you explain step by step what do we need to do?
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.
Change
from flask.ext.mysql import MySQL
to
from flaskext.mysql import MySQL