• 
      

    Add documentation on all the Djblets settings.

    Review Request #15207 — Created July 29, 2026 and updated

    Information

    Djblets
    release-6.x

    Reviewers

    This introduces a Settings guide, which covers all the settings.py
    settings managed by Djblets. It's broken down into category, using the
    setting:: directive provided by beanbag-docutils. As a note, these
    docs are initially written by Claude, edited by me.

    All references to these in existing docstrings and guides have been
    updated to use the :setting: role.

    Built the docs. Checked that the settings page's organization and
    descriptions were correct. Checked the links from other doc pages
    to make sure the links were correct.

    Verified there were no build errors.

    Summary ID
    Add documentation on all the Djblets settings.
    This introduces a Settings guide, which covers all the `settings.py` settings managed by Djblets. It's broken down into category, using the `setting::` directive provided by beanbag-docutils. As a note, these docs are written by Claude. All references to these in existing docstrings and guides have been updated to use the `:setting:` role.
    f8d50f17e549272e098fa71f6497f1d781c34a2d
    Description From Last Updated

    line too long (82 > 79 characters) Column: 80 Error code: E501

    reviewbot reviewbot

    line too long (82 > 79 characters) Column: 80 Error code: E501

    reviewbot reviewbot

    line too long (82 > 79 characters) Column: 80 Error code: E501

    reviewbot reviewbot

    This should be changed to be :setting:

    david david

    While I was asking claude questions about this change it noticed that the name in this error message doesn't match …

    david david

    This is (was already) incorrect. It only performs caching if PRODUCTION is True.

    david david

    Underline isn't the right length.

    david david

    There's no real default to this value. Can we say "if unset, Djblets treats the site as being served from …

    david david

    This should mention the default of 60 * 60 * 24 * 30 (30 days)

    david david

    This setting has existed for a long time. What 6.1 adds is the class attribute, not the setting.

    david david

    Underline isn't the right length.

    david david

    Underline isn't the right length.

    david david

    Underline isn't the right length.

    david david

    The default value is actually the ID, not the class.

    david david

    The default value is actually the ID, not the class.

    david david

    Typo: missing a backtick in front of "From"

    david david

    Underline isn't the right length.

    david david
    Checks run (1 failed, 1 succeeded)
    flake8 failed.
    JSHint passed.

    flake8

    chipx86
    Review request changed
    Change Summary:

    Fixed line length issues.

    Commits:
    Summary ID
    Add documentation on all the Djblets settings.
    This introduces a Settings guide, which covers all the `settings.py` settings managed by Djblets. It's broken down into category, using the `setting::` directive provided by beanbag-docutils. As a note, these docs are written by Claude. All references to these in existing docstrings and guides have been updated to use the `:setting:` role.
    bd30350a4cb2a0c91d48e95cb3fa2dad23a23aa2
    Add documentation on all the Djblets settings.
    This introduces a Settings guide, which covers all the `settings.py` settings managed by Djblets. It's broken down into category, using the `setting::` directive provided by beanbag-docutils. As a note, these docs are written by Claude. All references to these in existing docstrings and guides have been updated to use the `:setting:` role.
    f8d50f17e549272e098fa71f6497f1d781c34a2d

    Checks run (2 succeeded)

    flake8 passed.
    JSHint passed.
    david
    1. 
        
    2. djblets/extensions/manager.py (Diff revision 2)
       
       
      Show all issues

      This should be changed to be :setting:

    3. djblets/privacy/consent/tracker.py (Diff revision 2)
       
       
      Show all issues

      While I was asking claude questions about this change it noticed that the name in this error message doesn't match the actual setting checked above.

    4. Show all issues

      This is (was already) incorrect. It only performs caching if PRODUCTION is True.

    5. docs/djblets/guides/settings.rst (Diff revision 2)
       
       
       
      Show all issues

      Underline isn't the right length.

    6. docs/djblets/guides/settings.rst (Diff revision 2)
       
       
      Show all issues

      There's no real default to this value. Can we say "if unset, Djblets treats the site as being served from the domain root"?

      We should also mention that if someone is using djblets.urls.context_processors.site_root, this must be explicitly set.

    7. docs/djblets/guides/settings.rst (Diff revision 2)
       
       
      Show all issues

      This should mention the default of 60 * 60 * 24 * 30 (30 days)

    8. docs/djblets/guides/settings.rst (Diff revision 2)
       
       
      Show all issues

      This setting has existed for a long time. What 6.1 adds is the class attribute, not the setting.

    9. docs/djblets/guides/settings.rst (Diff revision 2)
       
       
       
      Show all issues

      Underline isn't the right length.

    10. docs/djblets/guides/settings.rst (Diff revision 2)
       
       
       
      Show all issues

      Underline isn't the right length.

    11. docs/djblets/guides/settings.rst (Diff revision 2)
       
       
       
      Show all issues

      Underline isn't the right length.

    12. docs/djblets/guides/settings.rst (Diff revision 2)
       
       
       
      Show all issues

      The default value is actually the ID, not the class.

    13. docs/djblets/guides/settings.rst (Diff revision 2)
       
       
      Show all issues

      The default value is actually the ID, not the class.

    14. docs/djblets/guides/settings.rst (Diff revision 2)
       
       
      Show all issues

      Typo: missing a backtick in front of "From"

    15. docs/djblets/guides/settings.rst (Diff revision 2)
       
       
       
      Show all issues

      Underline isn't the right length.

    16.