-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
Describe the issue:
Follow the steps of README.md, after running flask run --reload, open http://127.0.0.1:5000/ and clicking post a venue, the web page displays "Sorry...".

Repro Steps:
- windows
- Download the project starter code locally.
- Initialize and activate a virtualenv using:
pip install virtualenv
python -m virtualenv venv
venv/Scripts/activate
- Install the dependencies
pip install -r requirements.txt
- Run the development server:
setx FLASK_APP app.py
setx FLASK_ENV development
setx FLASK_DEBUG true
flask run --reload
- Verify on the Browser: open http://127.0.0.1:5000/ and click
post a venue.
- codespaces
- open codespaces.
- Initialize and activate a virtualenv using:
python -m virtualenv venv
source venv/bin/activate
- Install the dependencies
pip install -r requirements.txt
- Run the development server:
export FLASK_APP=app.py
export FLASK_ENV=development
export FLASK_DEBUG=true
flask run --reload
6.Verify on the Browser: open http://127.0.0.1:5000/ and click post a venue.
Suggestion:
In the fourth step of Local Development, add instructions about “MySQL connection configuration” before Flask run --reload.
For example:
- Add MySQL connection configuration to the environment.
export AZURE_MYSQL_USER=
export AZURE_MYSQL_PASSWORD=
export AZURE_MYSQL_HOST=
export AZURE_MYSQL_NAME=
export DEPLOYMENT_LOCATION=azure
- And in windows, add configuration using:
setx AZURE_MYSQL_USER user
setx AZURE_MYSQL_PASSWORD password
setx AZURE_MYSQL_HOST host
setx AZURE_MYSQL_NAME dbname
setx DEPLOYMENT_LOCATION azure
@john0isaac and @hemarina for notification.
Metadata
Metadata
Assignees
Labels
No labels