Skip to content

Commit

Permalink
Makes FeatureFlag globally accessible in Django
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolearagao committed Feb 23, 2022
1 parent 012daad commit 77e9754
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions quipucords/quipucords/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import logging
import os

from .featureflag import FeatureFlag

# Get an instance of a logger
logger = logging.getLogger(__name__) # pylint: disable=invalid-name

Expand Down Expand Up @@ -405,3 +407,6 @@ def is_int(value):
'QPC_INSIGHTS_REPORT_SLICE_SIZE', '10000')
if is_int(QPC_INSIGHTS_REPORT_SLICE_SIZE):
QPC_INSIGHTS_REPORT_SLICE_SIZE = int(QPC_INSIGHTS_REPORT_SLICE_SIZE)

# Load Feature Flags
QPC_FEATURE_FLAGS = FeatureFlag()

0 comments on commit 77e9754

Please sign in to comment.