From aec07a1cb59ec25765cc2f5c4b6011bccb989abc Mon Sep 17 00:00:00 2001 From: Leonardo Giordani Date: Sun, 21 Jun 2020 09:29:45 +0100 Subject: [PATCH] Removed misleading DEBUG variable from examples --- docs/config.rst | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/config.rst b/docs/config.rst index 891c299f..f02702b2 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -429,7 +429,6 @@ sure to use uppercase letters for your config keys. Here is an example of a configuration file:: # Example configuration - DEBUG = False SECRET_KEY = b'_5#y2L"F4Q8z\n\xec]/' Make sure to load the configuration very early on, so that extensions have @@ -554,7 +553,6 @@ An interesting pattern is also to use classes and inheritance for configuration:: class Config(object): - DEBUG = False TESTING = False DATABASE_URI = 'sqlite:///:memory:' @@ -562,7 +560,7 @@ configuration:: DATABASE_URI = 'mysql://user@localhost/foo' class DevelopmentConfig(Config): - DEBUG = True + pass class TestingConfig(Config): TESTING = True @@ -589,7 +587,6 @@ your configuration classes:: class Config(object): """Base config, uses staging database server.""" - DEBUG = False TESTING = False DB_SERVER = '192.168.1.56' @@ -603,11 +600,9 @@ your configuration classes:: class DevelopmentConfig(Config): DB_SERVER = 'localhost' - DEBUG = True class TestingConfig(Config): DB_SERVER = 'localhost' - DEBUG = True DATABASE_URI = 'sqlite:///:memory:' There are many different ways and it's up to you how you want to manage