import os
import tornado
from tornado.options import define, options


BASE_DIR = os.path.dirname(os.path.abspath(__file__))

define('port', default=8891, help="run on the given port", type=int)
define('debug', default=True, help='debug mode')
tornado.options.parse_command_line()


settings = {}
settings['debug'] = options.debug
settings['static_path'] = os.path.join(BASE_DIR, 'static')
settings['template_path'] = os.path.join(BASE_DIR, 'templates')
settings['cookie_secret'] = os.environ.get('SECRET_TOKEN', '__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__')
settings['xsrf_cookies'] = True
settings['login_url'] = '/auth/login/'
settings['ui_modules'] = {}

DATABASES = {
    'default': {
        'ENGINE': 'postgresql+psycopg2',
        'NAME': 'postgres',
        'USER': 'postgres',
        'PASSWORD': 'psobbst5',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}
url_placeholder = '{ENGINE}://{USER}:{PASSWORD}@{HOST}:{PORT}/{NAME}'
url = url_placeholder.format(**DATABASES['default'])
@@ -148,10 +148,10 @@
 t=88
-91
+88
 , he
@@ -808,16 +808,8 @@
 ': '
-psobbst5
 ',%0A 

fix settings