Flipt Integration for Django and Django REST Framework
pip install django-flipt
- Add
flipt
intoINSTALLED_APPS
INSTALLED_APPS = [
...
'flipt',
]
- Define Flipt gRPC endpoint in
settings.py
FLIPT_GRPC_HOST = 'flipt:9000'
- Ready to go!
You can override any flag by defining your flag key and overriding value
FLIPT_FLAG_OVERRIDDEN = {
'some-flag-key': True
}
flag_enabled
flag_disabled
FlaggedRouter
@flag_check
@override_flags
{% featureflag %} ... {% endfeatureflag %}
FeatureFlagListView
flagged_path
flagged_re_path
- Docker
$ make
$ make lint
$ make test
- Flipt
- Inspired by django-flags