mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 06:29:31 -02:30
Disable capturing SQL queries in memory when running celeryd in development.
This commit is contained in:
@@ -16,6 +16,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||
|
||||
DEBUG = True
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
SQL_DEBUG = DEBUG
|
||||
|
||||
ADMINS = (
|
||||
# ('Your Name', 'your_email@domain.com'),
|
||||
|
||||
@@ -13,6 +13,10 @@ from split_settings.tools import optional, include
|
||||
# Load default settings.
|
||||
from defaults import *
|
||||
|
||||
# Disable capturing all SQL queries when running celeryd in development.
|
||||
if 'celeryd' in sys.argv:
|
||||
SQL_DEBUG = False
|
||||
|
||||
# If any local_*.py files are present in awx/settings/, use them to override
|
||||
# default settings for development. If not present, we can still run using
|
||||
# only the defaults.
|
||||
|
||||
@@ -15,6 +15,7 @@ from defaults import *
|
||||
|
||||
DEBUG = False
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
SQL_DEBUG = DEBUG
|
||||
|
||||
# Clear database settings to force production environment to define them.
|
||||
DATABASES = {}
|
||||
|
||||
Reference in New Issue
Block a user