Managing Open edX feature toggles and waffle flags

Waffle flags let operators switch Open edX features on for a site, course or user without a code change. This page covers how to set them, record what you changed and check removed toggles at each release.

On this page

Managing Open edX feature toggles and waffle flags before a feature reaches learners

A feature can ship in an Open edX release and still be off for your learners. Most operators meet this when a new capability must run for one site, one pilot course or one group of users before anyone else sees it. The mechanism that handles this is the feature toggle, and in edx-platform the flags that switch behavior on or off per request are managed through waffle, a flag library used in Django applications. Because edx-platform is written in Python and built on Django, the same admin tooling and configuration model you already use for the rest of the platform applies to these flags. edx-platform is licensed under the GNU Affero General Public License version 3, so the code you run, including any toggle logic you read or patch, carries those terms.

Waffle flags and settings files do different jobs. Settings files hold values that are fixed for a deployment, such as hosts, database connections and service credentials, and changing them usually means redeploying. Flags are checked at runtime and can be scoped to a site, a course or a user, which makes them the right place for staged rollouts, pilots and differences between sites that share one codebase. Teams need to manage them when a feature has to be proven with a small audience, when a multi-site installation must behave differently on each site, or when a change should be reversible without a deployment. Before relying on any flag, confirm its exact name, default value and scope against the edx-platform version you run, because flag names change between releases and this page does not list them.

Choosing the scope of a flag: site, course or user

A site-wide flag applies to every learner, instructor and course on the platform. It is the widest scope and the one with the largest blast radius, so it suits features you have already tested end to end on a staging copy of your deployment. Changes at this level are usually the ones that surprise course teams, because a toggle that alters a page or a grading path shows up everywhere at once.

  • Who is affected: every account on the instance, including instructors mid-course and learners taking timed exams.
  • Risk of a wrong setting: a feature that is incomplete or misconfigured reaches the whole learner base before anyone notices.
  • How to reverse it: set the flag back to its previous state in the Django admin and confirm the page renders as before, since site-wide flags usually have no per-course memory.
  • What to record: the flag name, the new value, the time of change, the person who approved it and the reason, in your change log.
  • Before you change it: confirm with the Open edX release in use that the flag still exists and has the behavior you expect.

Before you switch a site-wide flag on, confirm the reversal steps in staging and check that the change does not fall during a live exam or a course deadline.

Which toggle mechanism fits which change

This table compares the main ways to switch Open edX behavior: waffle flags, waffle switches and samples, site configuration, Tutor settings and code-level flags. Read each row by asking where the setting lives and how far its effect reaches. The main takeaway is that a change should be made in the narrowest mechanism that supports it, and each choice should be confirmed against your release before you depend on it.

MechanismWhere it is setScope and when it fitsWhat to confirm before relying on it
Waffle flagDjango admin, waffle sectionCan target users, courses or sites. Fits gradual rollouts and per-course pilots of a named feature.Which flags exist in your release and whether your feature reads them for the audience you intend.
Waffle switchDjango admin, waffle sectionGlobal on or off for the whole instance. Fits a platform-wide change that needs one control point.That the switch is read by the code path you expect and how it behaves during a release upgrade.
Waffle sampleDjango admin, waffle sectionA percentage of requests or users. Fits measured exposure, but results depend on how the sample is keyed.The sampling key and whether the same user keeps a consistent result across sessions.
Site configurationDjango admin or site settingsApplies to one site in a multi-site install. Fits branding, sign-in or feature choices that differ by site.Which keys are supported in your release and whether they override or merge with platform settings.
Tutor settingsTutor config files and tutor config saveApplies to the whole deployment at build and start. Fits infrastructure and service choices that must survive rebuilds.Which options are exposed by your Tutor version and whether a change needs an image rebuild or restart.
Code-level feature flagSettings files or a plugin, deployed with codeChanges for every user in a deployment. Fits behavior that must be fixed before release, not toggled by staff.That the flag is documented for your release and that removing it in a later release is planned in your tracking record.

Setting up waffle flags in the Django admin

This sequence turns a single Open edX feature on for a defined audience, starting from restricted admin access and ending with a wider rollout only after a scoped pilot has passed its checks. Each step leaves a record you can show a reviewer.

  1. Confirm who can reach the Django admin

    Before any flag changes, the platform owner confirms that the Django admin is reachable only from approved networks and only by named operators with staff and superuser rights that match their role. Shared or generic admin accounts should be removed, and multi-factor authentication should be in place for every account that can edit flags. The step is done when the operator list is written down and each account has been tested from an approved location and a non-approved one, with the second attempt refused.

  2. Identify the flag for the target release

    Find the waffle flag that controls the feature in the Open edX release you run, using the release notes for that release and the source code that reads the flag. Flag names change between releases, so confirm the exact name against your running version instead of copying it from an older guide or a forum post. The output is a short record that names the flag, the code path it controls, the release it was checked against, and the default state the platform uses when no flag row exists.

  3. Create or edit the flag in the admin

    In the Django admin, open the waffle section and either create the flag or edit the existing record, entering only the name confirmed in the previous step. Leave the flag switched off globally while you configure it, and add a short note or ticket reference in the record so the reason for the change is visible later. The step is complete when the saved flag appears in the list with the expected name and the global switch shows as off.

  4. Set the scope and conditions

    Define who the flag applies to by setting the conditions that the waffle model supports in your release, such as specific users, groups, or sites, and confirm which of these options your version actually offers before relying on them. For course-level behavior, check whether the feature reads a course-level setting or a flag at all, because some features use a separate course configuration. Record the scope in your change log. The check is a dry run on a non-production copy showing that the flag evaluates to on for the intended accounts and to off for everyone else.

  5. Test with a staff or pilot account

    Sign in to the staging or pilot environment with a staff account and a pilot learner account that sit inside the scope, and confirm that the feature appears and works. Then sign in with an account outside the scope and confirm that the feature is hidden and that the original behavior is unchanged. Test the path in both Studio and the LMS when the feature touches both. The step closes when both results are recorded with the account type, the page checked, and the outcome.

  6. Enable for the wider audience

    Once the pilot results are accepted, widen the scope by editing the same flag record rather than creating a second one, so that the audit trail stays on one object. Apply the change in production during the window your team has agreed, and keep the previous scope written down so you can reverse it. The step is done when the wider audience sees the feature and a sample of accounts outside the audience still does not.

  7. Confirm the audit trail and the change record

    Check that the admin history for the flag shows each edit with the operator name, the time, and the field changed, and that your change log matches it entry for entry. Confirm that platform logs show no errors tied to the feature after the change, using the log locations your team already monitors. Store the confirmed record with the release it belongs to, since it will be needed when you review toggles at the next release. The step is complete when someone outside the change can read the record and reconstruct what was switched on, for whom, and by whom.

How a flag decision moves from request to learner experience

A flag change starts as a written request tied to a named scope: one site, course or user group. The owning team reviews and approves it, then makes the change in the Django admin or in the configuration repository, so the record of the change lives in one place. The change is verified on a pilot scope before wider enablement. Every step, including any rollback, is recorded in the change log, so the team can see later which toggles were changed, by whom and why.

Flag change path from request to log, with the rollback branch.

Tracking which toggles you changed and why

Every waffle flag state on a production Open edX platform needs a written record: who changed it, when, for which scope (site, course or user), and why. Without that record, a learner-facing change made in the Django admin during an incident can look identical to a change that was never made at all, and the next release review starts from guesswork. Treat the flag state as configuration that belongs to your platform, not as a setting that only lives in the database.

Where possible, keep the desired state of each flag in version-controlled configuration, for example in the Tutor project root or in a repository your operations team owns, so every change goes through a commit and a review. Pair each commit with a ticket reference in the commit message, and keep a simple change log that lists flag name, scope, old value, new value, owner, ticket and the reason. Flags that are changed only through the admin still need the same log entry, written at the time of the change. Confirm first what the admin records on its own: check whether the waffle models or your Django admin configuration keep a change history, which fields it captures and how long that history is retained. Do not assume a built-in audit trail exists until you have tested it on your own version.

Schedule a periodic comparison between the live admin state and the recorded state. A practical check is a short script or manual export of every flag, site, course and user override in the admin, diffed against the version-controlled file and the change log. Any difference is either an unlogged change or a stale record, and both need an owner and a ticket before the next release. Run this comparison before each maintenance window and before each named release upgrade, because flags can be added, renamed or removed between releases. Ask your operations team to define who is allowed to change production flags, who approves changes that affect learners or assessments, and where the log is kept, so the record survives staff turnover.

Security and operational risks of changing flags in production

A waffle flag change takes effect for live learners the moment it is saved, so the risks sit in who can change it, what it exposes, and whether every node agrees. Each card names one risk and the control to apply before a flag changes in production.

Unauthorized flag changes

Anyone with Django admin access to waffle flag records can switch a feature on or off for a whole site. Limit flag editing to a named group, separate it from general staff rights, and require a change ticket that states the flag name, scope, and expected effect. Review who holds that group each quarter, because flag edits leave no approval step by default.

Unfinished features reaching learners

A flag meant for internal testing can become visible to every learner if its scope is set to all users or all sites. Before enabling anything, confirm the flag's scope (site, course, or user), restrict it to staff or a pilot course first, and check that the feature has passed your acceptance tests. Treat a flag enabled for everyone as a release, with the same sign-off.

State drift across nodes and workers

Web processes and Celery workers read flag values through the cache, so a node with a stale copy can behave differently from its neighbors. Multi-node deployments need a shared Django cache backend such as Redis or Memcached, and the cache must be the same for every process that reads flags. After each change, confirm the result on several nodes and in a background task, not only in one browser session.

Exposed admin access

The Django admin that edits flags is a privileged interface, and exposing it to the public internet widens the attack surface for every flag. Restrict the admin path to a private network or VPN, enforce SSO or MFA for admin accounts, and log admin logins. Confirm the admin route in your reverse proxy configuration, since a path that works internally can also resolve from outside.

Stale flags after upgrades

A flag added for a previous release may be removed, renamed, or made obsolete in the next one, leaving records that no code reads or code that assumes a value that no longer exists. Before each upgrade, list every flag you have changed, check it against the release notes for the target version, and remove flags the new release no longer uses. Record the decision for each flag in your change log.

Open edX release notes

Untested rollback

A flag change is only reversible if someone has confirmed the feature behaves correctly when switched off after learners have used it. Test the disable path in staging with realistic course data, note any data the feature wrote, and decide whether that data stays hidden or needs cleanup. Write the rollback steps next to the change ticket so an on-call engineer can run them without the original author.

Checking removed and renamed toggles at each release

How do I find out which waffle flags a new Open edX release removes or renames?

Read the release notes for the named release you are moving to, and search them for every flag name you have changed in the Django admin. Open edX states that the latest named release is the only supported release, so this check belongs inside your upgrade plan rather than after it. Make a list of the flags your team has switched on or off, then mark each one as unchanged, removed, renamed or now permanent behavior. Keep that list with your Tutor project files so the next reviewer can see what you checked and when. The release notes are the primary source: Open edX release notes.

How do I compare the flags in my admin against a new release?

Export or record the current waffle flag, switch and sample records from the Django admin on your staging copy, then list the same records after the new release is installed in a test environment. Compare the names, the scope (site, course or user) and the on or off state for each entry. A flag that disappears from the new list has been removed, and a flag with a new name usually means the old record is now dead configuration that no code reads. Record each difference in your change log so that nobody later assumes a setting is still active. Ask your engineers to confirm the comparison method for your Open edX version before they start, since the admin screens and record types can change between releases.

Which custom plugins and XBlocks might read a flag that changed?

Any code you wrote that checks a flag by name can break when that flag is removed or renamed. Review your Tutor plugins, Django app plugins, XBlocks, asides and custom micro-frontends, and search each one for flag names, including calls that read the flag at request time and checks that run in templates or settings files. Also review any third-party plugin you depend on, and check its release notes for the same flag names. Treat each match as a dependency with an owner, and decide whether the code should be updated, removed or left to fall back to default behavior. This review is often the largest part of a release check when custom code is involved, so ask for it to be scoped separately in any quote.

How do I test flag changes in a staging copy before production?

Build a staging copy from a recent backup, install the target release there, and run the same flag records you use in production. Then test each affected feature for each audience you have set up: a single user, a course and a whole site. Check the learner and instructor paths, Studio, and any custom code you found in the earlier review. Log what you saw and what you changed, and repeat the test after every fix. Staging only proves something when it is close to production in configuration and data, so document any gaps, such as different SSO settings or missing course content. Your backup and restore steps are the foundation for this test, so confirm they work before you rely on them.

What should I do when a toggle has become permanent behavior?

When a feature is no longer behind a flag in the new release, the flag record usually no longer controls anything, and the feature runs for everyone. Confirm this in the release notes and in staging, then decide whether to delete the old record or keep it as a note for your team. Do not assume that the old on or off value still matters, because the code path may now ignore it. If your site had turned a feature off to hide it from learners, plan a decision on whether that feature should now be visible, and communicate the change to course teams before the upgrade window. Record the decision with the release name so that future reviewers understand why the record was removed.

How much effort does a release check for feature toggles take?

The effort depends on how many flags your site changed, how much custom code reads them, and how many features your learners and course teams use. A site with a short list of standard flags and no custom code needs a comparison, a staging test and a change log. A site with many per-course overrides and several custom XBlocks needs a broader code review and more test cases. Your team pays for the time to read the release notes, run the comparison and test, and any fixes to custom code, and these costs recur at every named release. Ask any partner for a quote that lists the flags in scope, the custom code to review, and the staging environment it will use.

Can my own team run the release check for feature toggles?

Yes, if you have engineers who know your Tutor project, your Django admin and your custom code, and if you have a staging environment that matches production. The check is a documented process of reading, comparing, reviewing and testing, so the main risk is missing a flag that only one user group or one course depends on. Assign an owner for the flag list, another owner for custom code review, and a sign-off step before the production upgrade. If your team lacks time at a release date, a fixed-scope engagement can cover the check against a written list of flags and code. DeployOpen plans, customizes, tests and supports self-hosted open-source platforms in your own infrastructure, and the scope would be agreed in writing before work starts.

Limits and what to confirm in your environment

Waffle flags are a release-specific feature, and their behavior depends on your Open edX version, how you deploy it, and how many sites you run. The cards below list the points to confirm in your own environment before you build a toggle process around them.

Confirm which flags exist in your release

Flag names and defaults change between named releases, and Open edX supports only the latest named release. Before you write a flag into your runbook, list the flags present in your running version through the Django admin and compare that list with the release notes for your version. A flag that exists in a later release may be absent or behave differently in yours, so treat the list from your own instance as the source of truth.

Release notes

Confirm the admin access model

Changing a flag in the Django admin is a privileged action that can alter learner-facing behavior for every course on a site. Confirm which staff accounts can reach the Django admin, whether those accounts use SSO or local passwords, and whether changes are logged with a named user. Decide who may change flags in production and who approves the change, and write that decision down before the first toggle is flipped.

Confirm how flags interact with Tutor settings

Tutor generates much of the platform configuration from its project root and plugins, and a value set in the Django admin may be overwritten on the next configuration render or deployment. Test this in a non-production environment by changing a flag, running the Tutor configuration and deployment steps you normally use, and checking the value afterward. Record which flags must be set in Tutor configuration instead of the admin.

Tutor docs

Confirm behavior across multiple sites

A flag can be scoped to a site, a course or a user, and multi-site deployments add a further scope that may not behave as you expect. Confirm how the Django admin presents site-specific settings in your version, and test that a change on one site does not leak to another. Note which flags are global, because a global change reaches every site on the same installation.

Confirm support for custom flags

Teams often want a flag of their own for a local feature or a staged rollout. Confirm whether your version lets you add custom waffle flags through the admin or code, and whether the platform reads them in the code paths you need. If custom flags are not supported for your use case, plan a configuration setting or a plugin instead, and test it before relying on it for a rollout.

Confirm backup coverage of flag state

Flag state lives in the database, so a restore returns flags to the values they held when the backup was taken. Confirm that your MySQL dump includes the waffle tables and that a restore test shows the expected flag values. Compare that result with any flags set through Tutor configuration, since those values come from the project root and not the database.

Questions teams ask before managing feature toggles

How much effort does managing Open edX feature toggles take?

The effort depends mostly on how many waffle flags your platform uses, how many scopes each flag is set at, and how much evidence you must keep about each change. A small set of site-wide flags that change twice a year is a light task. Dozens of flags set per site, per course and per user, with an audit trail for each change and a release cadence that repeats every few months, is a recurring workload. Before you ask for a quote, list every flag you have changed from its default, the scope it applies to, and who asked for it. That list sets the effort more accurately than any general estimate. Ask the partner to show how they would size the review of that list.

Can our internal team manage Open edX waffle flags without outside help?

Yes, many teams do this in-house, provided someone on the team has Django admin access, understands how the LMS and Studio read waffle flags, and owns the change record. The risk is less the clicking and more the knowledge gap: a flag that looks unused may still control a feature a course team relies on. Internal teams usually struggle when the person who set a flag leaves and nobody recorded why. A partner can help by setting up the change log, running the first review against the release notes for your named release, and training two or three staff to keep the review going. Decide which parts you will own before you ask for help, so the engagement stays fixed in scope.

What does DeployOpen need from our team to review feature toggles?

The work needs four things from your side. First, admin access to the Django admin on the environments in scope, with an account the reviewer can use for the duration of the work. Second, a staging copy of the platform that matches production closely enough to test each flag change before it reaches learners. Third, a named approver for each class of change, such as a site operator for platform-wide flags and a course team lead for course-level flags. Fourth, a current export or list of the flags in use with their scopes and owners, if you already keep one. Confirm these inputs in the written scope so that delays in access do not quietly extend the timeline.

How long does a feature toggle review take for each Open edX release?

The length of a review depends on scope, not on a fixed figure. The main drivers are the number of flags you have changed from their defaults, the number of sites and courses that use them, whether the release notes for the named release introduce or remove any toggles you depend on, and how much audit evidence you need. A review of a single-site platform with a short flag list is much shorter than a multi-site platform with per-user overrides. Ask the partner to state the review steps and the inputs each step needs, then agree a timeline in writing against your actual flag inventory.

What should a quote for feature toggle management include?

A useful quote lists the scope in concrete terms. It should name the environments covered, the approximate number of flags in the inventory, the scopes in use (site, course, or user), and the release or releases to be reviewed. It should state the deliverables, such as a flag inventory, a change log template, a per-release checklist, and a summary of removed or renamed toggles. It should say who does which step, what you must provide, and what happens if the inventory is larger than expected. Ask whether the price covers the first review only or also recurring reviews, and whether any retainer is needed for ongoing support. DeployOpen works from a written scope, so the quote should follow directly from that scope.

How do we track which Open edX feature toggles we changed?

Keep a single change record that holds, for every flag you touch, the flag name, the scope, the previous and new value, the date, the reason, the person who approved it, and the release it relates to. Store the record in version control or another system your auditors can read, not only in admin history. Review the record at each release so you can see which flags still apply and which the release has removed. The record is also your evidence during internal audits, so decide early who can write to it and who can approve changes.

What goes wrong when feature toggles are not reviewed at each release?

The most common problem is a flag that a new release has removed or renamed. Your platform may still hold a stale override that no longer does what the team expects, or a feature a course depends on may switch off silently after an upgrade. Another problem is drift between staging and production, where a flag is set differently in each and nobody can explain why. Both problems are easier to catch when a reviewer compares the flag inventory with the release notes before the upgrade window, not after learners report a fault. Plan the review as part of the upgrade work, and confirm the review steps with your team before the release date.

Who should approve changes to Open edX feature toggles?

Approval should sit with the role that owns the affected experience. Platform-wide flags need a site operator or platform owner. Course-level flags need the course team lead, and user-level overrides need a named support or program owner. Write these roles down before the first review, and record the approver on every change. Without named approvers, flags accumulate because nobody feels responsible for removing them. Ask the reviewer to help you draft the approval matrix as part of the scope.

How DeployOpen works on this

DeployOpen plans, implements, customizes, documents and supports self-hosted open-source platforms inside your own infrastructure, including Open edX. For feature toggle work, that means agreeing in writing which waffle flags change, for which sites, courses or users, and who owns each decision before any flag is touched in production.

How we scope

  • Inventory the waffle flags your Open edX platform reads today, with their current values in the Django admin and where each one is set.
  • Agree in writing which flags change, at which level (site, course or user), and which stay under your existing defaults.
  • Confirm the toggle register format, the release check and who approves each change before the engagement starts. Most engagements are fixed-scope.

How we build

  • Set up the toggle register and a change log that records the flag name, scope, old value, new value, owner and date for every change.
  • Test each flag change on a staging copy of your Open edX environment, including the learner and course team paths it affects.
  • Prepare a per-release checklist that lists toggles removed or renamed in the target Open edX release, so each one is reviewed before upgrade.

How we hand over

  • Deliver the toggle register, change log, release checklist and runbook for turning flags on and off in the Django admin.
  • Walk your platform, course operations and release teams through the procedure and record who may change which flags.
  • Document the rollback step for each flag so a change can be reversed without a database restore.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, covering toggle reviews before each named Open edX release.
  • Retest flag changes after platform upgrades, Tutor updates and any plugin that reads its own waffle flags.
  • Keep the register current as flags are added, retired or reassigned, so the record matches what runs in production.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.