File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818import dash_reusable_components as drc
1919import utils
2020
21+ os .environ ["REDIS_URL" ] = os .getenv ("REDIS_URL" , os .getenv ("EXTERNAL_REDIS_URL" ))
22+ # os.environ['DATABASE_URL'] = os.getenv('DATABASE_URL', os.getenv('EXTERNAL_DATABASE_URL'))
23+
2124DEBUG = True
2225LOCAL = False
2326APP_PATH = str (pathlib .Path (__file__ ).parent .resolve ())
Original file line number Diff line number Diff line change 1818
1919from utils import *
2020
21+ os .environ ["REDIS_URL" ] = os .getenv ("REDIS_URL" , os .getenv ("EXTERNAL_REDIS_URL" ))
22+ # os.environ['DATABASE_URL'] = os.getenv('DATABASE_URL', os.getenv('EXTERNAL_DATABASE_URL'))
2123
2224# Snowflake vars
2325FLAKE_ACCOUNT = os .getenv ("FLAKE_ACCOUNT" )
Original file line number Diff line number Diff line change 2323from sklearn .tree import DecisionTreeClassifier , plot_tree , export_graphviz
2424from sklearn import metrics
2525
26+ os .environ ["REDIS_URL" ] = os .getenv ("REDIS_URL" , os .getenv ("EXTERNAL_REDIS_URL" ))
27+ # os.environ['DATABASE_URL'] = os.getenv('DATABASE_URL', os.getenv('EXTERNAL_DATABASE_URL'))
28+
2629
2730def connect_read_sql (query , engine ):
2831 connection = engine .connect ()
You can’t perform that action at this time.
0 commit comments