ciyidogan commited on
Commit
43ba025
·
verified ·
1 Parent(s): 3e9b39f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -37,6 +37,10 @@ from exceptions import (
37
  FlareException, RaceConditionError, format_error_response,
38
  get_http_status_code
39
  )
 
 
 
 
40
 
41
  ALLOWED_ORIGINS = os.getenv("ALLOWED_ORIGINS", "http://localhost:4200").split(",")
42
 
 
37
  FlareException, RaceConditionError, format_error_response,
38
  get_http_status_code
39
  )
40
+ from dotenv import load_dotenv
41
+
42
+ # Load .env file if exists
43
+ load_dotenv()
44
 
45
  ALLOWED_ORIGINS = os.getenv("ALLOWED_ORIGINS", "http://localhost:4200").split(",")
46