pgadmin4/web/config.py

67 lines
1.8 KiB
Python
Raw Normal View History

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 *
##########################################################################
# 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
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
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'
##########################################################################
# Local config settings
##########################################################################
2014-12-16 15:54:29 +00:00
# Load local config overrides
try:
from config_local import *
except ImportError:
pass