Skip to content

Commit

Permalink
Add Feature Flag Dependancy (#1135)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkayyali812 authored Nov 19, 2024
1 parent 6b9fc3a commit ac4be90
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
26 changes: 22 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ xxhash = "3.4.*"
pyjwt = { version = "2.7.*", extras = ["crypto"] }
ecdsa = "0.18.*"
validators = "^0.34.0"
django-flags = "^5.0.13"

[tool.poetry.group.test.dependencies]
pytest = "*"
Expand Down
5 changes: 5 additions & 0 deletions src/aap_eda/settings/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def _get_boolean(name: str, default=False) -> bool:
# Application definition
INSTALLED_APPS = [
"daphne",
"flags",
# Django apps
"django.contrib.auth",
"django.contrib.contenttypes",
Expand All @@ -198,6 +199,10 @@ def _get_boolean(name: str, default=False) -> bool:
"aap_eda.core",
]

# Defines feature flags, and their conditions.
# See https://cfpb.github.io/django-flags/
FLAGS = {}

MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
Expand Down

0 comments on commit ac4be90

Please sign in to comment.