Changeset 245136 in webkit


Ignore:
Timestamp:
May 9, 2019 9:09:35 AM (5 years ago)
Author:
aakash_jain@apple.com
Message:

[ews-app] Production and Development env should configure DEBUG appropriately
https://bugs.webkit.org/show_bug.cgi?id=197700

Reviewed by Jonathan Bedard.

  • BuildSlaveSupport/ews-app/ews-app/settings.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/ews-app/ews-app/settings.py

    r243518 r245136  
    3434import os
    3535
     36is_test_mode_enabled = os.getenv('EWS_PRODUCTION') is None
     37
    3638# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
    3739BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
     
    4446SECRET_KEY = os.environ.get('EWS_SECRET_KEY', 'secret')
    4547
    46 # SECURITY WARNING: don't run with debug turned on in production!
    47 DEBUG = True
     48DEBUG = False
     49if is_test_mode_enabled:
     50    # SECURITY WARNING: don't run with debug turned on in production!
     51    DEBUG = True
    4852
    4953ALLOWED_HOSTS = ['*']
     
    96100# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
    97101
    98 is_test_mode_enabled = os.getenv('EWS_PRODUCTION') is None
    99102if is_test_mode_enabled:
    100103    DATABASES = {
  • trunk/Tools/ChangeLog

    r245127 r245136  
     12019-05-09  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [ews-app] Production and Development env should configure DEBUG appropriately
     4        https://bugs.webkit.org/show_bug.cgi?id=197700
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * BuildSlaveSupport/ews-app/ews-app/settings.py:
     9
    1102019-05-09  Xan López  <xan@igalia.com>
    211
Note: See TracChangeset for help on using the changeset viewer.