forked from techwithtim/Chat-Web-App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5941ff
commit b88647c
Showing
17 changed files
with
140 additions
and
73 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
TESTING=False | ||
DEBUG=True | ||
SECRET_KEY=youwontguessthiskey | ||
SERVER=0.0.0.0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
from os import environ | ||
from dotenv import load_dotenv | ||
from pathlib import Path # python3 only | ||
import os | ||
|
||
# load enviornment variables | ||
env_path = Path('.') / '.env' | ||
load_dotenv(dotenv_path=env_path) | ||
|
||
|
||
class Config: | ||
"""Set Flask configuration vars from .env file.""" | ||
|
||
# General | ||
TESTING = environ.get('TESTING') | ||
FLASK_DEBUG = environ.get('FLASK_DEBUG') | ||
SECRET_KEY = environ.get('SECRET_KEY') | ||
# Load in enviornemnt variables | ||
TESTING = os.getenv('TESTING') | ||
FLASK_DEBUG = os.getenv('FLASK_DEBUG') | ||
SECRET_KEY = os.getenv('SECRET_KEY') | ||
SERVER = os.getenv('SERVER') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.