Formatting and todos.
This commit is contained in:
parent
f0fe2b9780
commit
df032328e9
1 changed files with 25 additions and 16 deletions
|
|
@ -1,30 +1,39 @@
|
|||
from os import environ
|
||||
import datetime
|
||||
|
||||
databases = {'dev':{'host': '185.166.215.170 ',
|
||||
'user': 'drogon',
|
||||
'password': 'noesfacilvivirsindrogon'},
|
||||
'tst':{'host': '46.183.114.164',
|
||||
'user': 'drogon',
|
||||
'password': 'noesfacilvivirsindrogon'},
|
||||
'pro':{'host': '185.166.215.250',
|
||||
'user': 'drogon',
|
||||
'password': 'noesfacilvivirsindrogon'}}
|
||||
# TODO Use dot_env to properly configure all of this.
|
||||
|
||||
databases = {
|
||||
"dev": {
|
||||
"host": "185.166.215.170 ",
|
||||
"user": "drogon",
|
||||
"password": "noesfacilvivirsindrogon",
|
||||
},
|
||||
"tst": {
|
||||
"host": "46.183.114.164",
|
||||
"user": "drogon",
|
||||
"password": "noesfacilvivirsindrogon",
|
||||
},
|
||||
"pro": {
|
||||
"host": "185.166.215.250",
|
||||
"user": "drogon",
|
||||
"password": "noesfacilvivirsindrogon",
|
||||
},
|
||||
}
|
||||
|
||||
try:
|
||||
current_db = environ['DROGON_ENV']
|
||||
current_db = "pro"
|
||||
except KeyError:
|
||||
current_db = 'dev'
|
||||
current_db = "dev"
|
||||
|
||||
try:
|
||||
current_db_parameters = databases[current_db]
|
||||
except KeyError:
|
||||
current_db_parameters = databases['default']
|
||||
current_db_parameters = databases["default"]
|
||||
|
||||
working_hours = {'start': datetime.time(9, 0, 0),
|
||||
'end': datetime.time(21, 0, 0)}
|
||||
working_hours = {"start": datetime.time(9, 0, 0), "end": datetime.time(21, 0, 0)}
|
||||
monthly_new_ads_target = 1200
|
||||
google_api_key = 'AIzaSyCnKj0WnsxVZcaoxeAYkuRw3cKRNGiISYA'
|
||||
google_api_key = "AIzaSyCnKj0WnsxVZcaoxeAYkuRw3cKRNGiISYA"
|
||||
minimum_seconds_between_tries = 60
|
||||
geocoder_delay = 10
|
||||
refresher_delay = 10
|
||||
refresher_delay = 10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue