File tree Expand file tree Collapse file tree
backend/src/baserow/config/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change 218218# Database
219219# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
220220if "DATABASE_URL" in os .environ :
221- DATABASES = {
222- "default" : dj_database_url .parse (os .getenv ("DATABASE_URL" ), conn_max_age = 600 )
223- }
221+ DATABASES = {"default" : dj_database_url .parse (os .getenv ("DATABASE_URL" ))}
224222else :
225223 DATABASES = {
226224 "default" : {
246244 if key .startswith ("DATABASE_READ_REPLICA_" ) and key .endswith ("_URL" ):
247245 suffix = key [len ("DATABASE_READ_REPLICA_" ) : - len ("_URL" )]
248246 db_key = f"read_{ suffix } "
249- DATABASES [db_key ] = dj_database_url .parse (value , conn_max_age = 600 )
247+ DATABASES [db_key ] = dj_database_url .parse (value )
250248 DATABASE_READ_REPLICAS .append (db_key )
251249 elif key .startswith ("DATABASE_READ_" ) and key .endswith ("_NAME" ):
252250 suffix = key [len ("DATABASE_READ_" ) : - len ("_NAME" )]
You can’t perform that action at this time.
0 commit comments