Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error in READ.md file ? #12

Open
AnumSheraz opened this issue Mar 24, 2019 · 1 comment
Open

syntax error in READ.md file ? #12

AnumSheraz opened this issue Mar 24, 2019 · 1 comment

Comments

@AnumSheraz
Copy link

AnumSheraz commented Mar 24, 2019

Not sure if its a syntax error, or the older version of dot_env supported - instead of =.
But I couldn't load the contents from .env file after creating it as instructed in READ.md. I had to change - to =

SECRET_KEY = 'this-really-needs-to-be-changed'
DATABASE_URI = mysql+mysqldb://<user>:<password>@localhost:3306/<databaseName>
ENVIRONMENT = <testing/production/development>
@AnumSheraz
Copy link
Author

AnumSheraz commented Mar 24, 2019

Another interesting bit:
when I set ENVIRONMENT = testing, I still see flask Warning message

Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead

that means, flask is still thinking we are on production environment. found out from docs that the recognized name is FLASK_ENV . So changing to FLASK_ENV= testing actually worked as expected ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant