2014-12-16 15:54:29 +00:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
|
|
|
# Copyright (C) 2013 - 2014, The pgAdmin Development Team
|
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
# config.py - Core application configuration settings
|
|
|
|
#
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
from logging import *
|
|
|
|
|
2014-12-16 17:14:48 +00:00
|
|
|
##########################################################################
|
|
|
|
# Log settings
|
|
|
|
##########################################################################
|
|
|
|
|
2014-12-16 17:37:53 +00:00
|
|
|
# Debug mode?
|
|
|
|
DEBUG = true
|
|
|
|
|
2014-12-16 15:54:29 +00:00
|
|
|
# Application log level - one of:
|
|
|
|
# CRITICAL 50
|
|
|
|
# ERROR 40
|
|
|
|
# WARNING 30
|
|
|
|
# SQL 25
|
|
|
|
# INFO 20
|
|
|
|
# DEBUG 10
|
|
|
|
# NOTSET 0
|
2014-12-16 17:14:48 +00:00
|
|
|
CONSOLE_LOG_LEVEL = WARNING
|
|
|
|
FILE_LOG_LEVEL = DEBUG
|
|
|
|
|
|
|
|
# Log format.
|
|
|
|
CONSOLE_LOG_FORMAT='%(asctime)s: %(levelname)s\t%(name)s:\t%(message)s'
|
|
|
|
FILE_LOG_FORMAT='%(asctime)s: %(levelname)s\t%(name)s:\t%(message)s'
|
2014-12-16 15:54:29 +00:00
|
|
|
|
|
|
|
# Log file name
|
2014-12-16 17:14:48 +00:00
|
|
|
LOG_FILE = 'pgadmin4.log'
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Server settings
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
# The default port on which the app server will listen if not set in the
|
|
|
|
# environment by the runtime
|
|
|
|
DEFAULT_SERVER_PORT = 5050
|
2014-12-16 15:54:29 +00:00
|
|
|
|
2014-12-16 17:37:53 +00:00
|
|
|
# Enable CSRF protection?
|
|
|
|
CSRF_ENABLED = True
|
|
|
|
|
|
|
|
# Secret key for signing CSRF data. Override this in config_local.py if
|
|
|
|
# running on a web server
|
|
|
|
CSRF_SESSION_KEY = 'SuperSecret'
|
|
|
|
|
|
|
|
# Secret key for signing cookies. Override this in config_local.py if
|
|
|
|
# running on a web server
|
|
|
|
SECRET_KEY = 'SuperSecret'
|
|
|
|
|
2014-12-16 17:14:48 +00:00
|
|
|
##########################################################################
|
|
|
|
# Local config settings
|
|
|
|
##########################################################################
|
2014-12-16 15:54:29 +00:00
|
|
|
|
|
|
|
# Load local config overrides
|
|
|
|
try:
|
|
|
|
from config_local import *
|
|
|
|
except ImportError:
|
|
|
|
pass
|