@@ -7,6 +7,7 @@ verify_ssl = true
[packages]
flask = "*"
+python-dotenv = "*"
[requires]
python_version = "3.7"
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
- "sha256": "a82b674d67d29678775ff6b773de1686a9593749ec14483b0d8e05131b662286"
+ "sha256": "e730cb0544e578be1605f4302c6bdcdf2f841cf66635c736c630dc6e63056301"
},
"pipfile-spec": 6,
"requires": {
@@ -78,6 +78,14 @@
],
"version": "==1.1.0"
+ "python-dotenv": {
+ "hashes": [
+ "sha256:a84569d0e00d178bc5b957f7ff208bf49287cbf61857c31c258c4a91f571527b",
+ "sha256:c9b1ddd3cdbe75c7d462cb84674d87130f4b948f090f02c7d7144779afb99ae0"
+ ],
+ "index": "pypi",
+ "version": "==0.10.1"
+ },
"werkzeug": {
"hashes": [
"sha256:c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c",
@@ -6,8 +6,11 @@ Initialize the modules needed for the website
import os
from flask import Flask
+from dotenv import load_dotenv
+load_dotenv()
+
class Config():
"""Config settings for the application"""
SECRET_KEY = os.environ["SECRET_KEY"]
@@ -5,7 +5,6 @@ PIPENV_VENV_IN_PROJECT=true
FLASK_APP=app/flaskr.py
FLASK_DEBUG=1
FLASK_ENV=development
-FLASK_SKIP_DOTENV=true
TESTING=True
# Own