2014-12-16 09:54:29 -06: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-17 06:52:43 -06:00
|
|
|
##########################################################################
|
|
|
|
# Application settings
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
# Name of the application to display in the UI
|
|
|
|
APP_NAME = 'pgAdmin 4'
|
|
|
|
|
|
|
|
# Application version number components
|
|
|
|
APP_MAJOR = 1
|
|
|
|
APP_MINOR = 0
|
|
|
|
APP_REVISION = 0
|
|
|
|
|
|
|
|
# Application version suffix, e.g. 'beta1', 'dev'. Usually an empty string
|
|
|
|
# for GA releases.
|
|
|
|
APP_SUFFIX = 'dev'
|
|
|
|
|
|
|
|
# DO NOT CHANGE!
|
|
|
|
# The application version string, constructed from the components
|
|
|
|
APP_VERSION = '%s.%s.%s-%s' % (APP_MAJOR, APP_MINOR, APP_REVISION, APP_SUFFIX)
|
|
|
|
|
2014-12-18 11:49:09 -06:00
|
|
|
# DO NOT CHANGE!
|
|
|
|
# List of modules to enable
|
|
|
|
MODULES = [ 'utils' ]
|
|
|
|
|
2014-12-16 11:14:48 -06:00
|
|
|
##########################################################################
|
|
|
|
# Log settings
|
|
|
|
##########################################################################
|
|
|
|
|
2014-12-16 11:37:53 -06:00
|
|
|
# Debug mode?
|
2014-12-18 11:49:09 -06:00
|
|
|
DEBUG = False
|
2014-12-16 11:37:53 -06:00
|
|
|
|
2014-12-16 09:54:29 -06:00
|
|
|
# Application log level - one of:
|
|
|
|
# CRITICAL 50
|
|
|
|
# ERROR 40
|
|
|
|
# WARNING 30
|
|
|
|
# SQL 25
|
|
|
|
# INFO 20
|
|
|
|
# DEBUG 10
|
|
|
|
# NOTSET 0
|
2014-12-16 11:14:48 -06:00
|
|
|
CONSOLE_LOG_LEVEL = WARNING
|
2014-12-18 11:49:09 -06:00
|
|
|
FILE_LOG_LEVEL = INFO
|
2014-12-16 11:14:48 -06:00
|
|
|
|
|
|
|
# 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 09:54:29 -06:00
|
|
|
|
|
|
|
# Log file name
|
2014-12-16 11:14:48 -06: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 09:54:29 -06:00
|
|
|
|
2014-12-16 11:37:53 -06: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 11:14:48 -06:00
|
|
|
##########################################################################
|
|
|
|
# Local config settings
|
|
|
|
##########################################################################
|
2014-12-16 09:54:29 -06:00
|
|
|
|
|
|
|
# Load local config overrides
|
|
|
|
try:
|
|
|
|
from config_local import *
|
|
|
|
except ImportError:
|
|
|
|
pass
|