Skip to content

Commit ac4be90

Browse files
authored
Add Feature Flag Dependancy (#1135)
1 parent 6b9fc3a commit ac4be90

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

poetry.lock

Lines changed: 22 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ xxhash = "3.4.*"
5757
pyjwt = { version = "2.7.*", extras = ["crypto"] }
5858
ecdsa = "0.18.*"
5959
validators = "^0.34.0"
60+
django-flags = "^5.0.13"
6061

6162
[tool.poetry.group.test.dependencies]
6263
pytest = "*"

src/aap_eda/settings/default.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def _get_boolean(name: str, default=False) -> bool:
180180
# Application definition
181181
INSTALLED_APPS = [
182182
"daphne",
183+
"flags",
183184
# Django apps
184185
"django.contrib.auth",
185186
"django.contrib.contenttypes",
@@ -198,6 +199,10 @@ def _get_boolean(name: str, default=False) -> bool:
198199
"aap_eda.core",
199200
]
200201

202+
# Defines feature flags, and their conditions.
203+
# See https://cfpb.github.io/django-flags/
204+
FLAGS = {}
205+
201206
MIDDLEWARE = [
202207
"django.middleware.security.SecurityMiddleware",
203208
"django.contrib.sessions.middleware.SessionMiddleware",

0 commit comments

Comments
 (0)