We are currently using Django-Waffle as a feature toggle framework.
It allows using switches and flags (switches that accept the request and allow
configuring the on/off flag according to the user, request, environ and more)
You can use flags, switches and other waffle goodies in templates, views, javascript etc.
You can read more about operating waffle in Waffle docs

Note that when you add a feature toggle in the code without adding in the db (through admin or command) then

A common problem with feature toggles is forgetting to remove them when finished. after some time passes nobody
remembers anymore the original purpose of the toggle and no ones dare removing it. Even worst things can happen
Please remove feature toggles when not needed any more.