internlm/SWE-Fixer-Train-110K huggingface dataset:
Repository: imAsparky/django-cookiecutter

Issue:
[FEAT]: Add django-allauth basic configuration to settings.
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.



Discussion:

Resolving patch:
diff --git a/{{cookiecutter.git_project_name}}/config/settings/base.py b/{{cookiecutter.git_project_name}}/config/settings/base.py
--- a/{{cookiecutter.git_project_name}}/config/settings/base.py
+++ b/{{cookiecutter.git_project_name}}/config/settings/base.py
@@ -13,6 +13,7 @@
 import os
 from django.utils.translation import ugettext_lazy as _
 
+
 # Build paths inside the project like this: BASE_DIR / 'subdir'.
 BASE_DIR = Path(__file__).resolve().parent.parent.parent
 
@@ -55,6 +56,9 @@
 {% else %}
 SITE_ID = {{cookiecutter.SITE_ID}}
 {% endif %}
+LOGIN_REDIRECT_URL = "/admin/"
+LOGOUT_REDIRECT_URL = '/accounts/login/'
+
 MIDDLEWARE = [
     "django.middleware.security.SecurityMiddleware",
     "django.contrib.sessions.middleware.SessionMiddleware",
@@ -182,3 +186,16 @@
 # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
 
 DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
+
+
+# Django Allauth Settings
+# https://django-allauth.readthedocs.io/en/latest/configuration.html
+ACCOUNT_AUTHENTICATION_METHOD = "username_email" # Default dj-allauth == username
+ACCOUNT_EMAIL_REQUIRED = True                    # Default dj-allauth == False
+ACCOUNT_UNIQUE_EMAIL = True                      # Default dj-allauth
+ACCOUNT_EMAIL_VERIFICATION = 'mandatory'         # Default dj-allauth (optional)
+ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 3       # Default dj-allauth
+ACCOUNT_LOGIN_ATTEMPTS_LIMIT = 5                 # Default dj-allauth
+ACCOUNT_USERNAME_REQUIRED = True                 # Default dj-allauth
+ACCOUNT_USERNAME_MIN_LENGTH = 3                  # Default dj-allauth == 1
+
diff --git a/{{cookiecutter.git_project_name}}/config/settings/local.py b/{{cookiecutter.git_project_name}}/config/settings/local.py
--- a/{{cookiecutter.git_project_name}}/config/settings/local.py
+++ b/{{cookiecutter.git_project_name}}/config/settings/local.py
@@ -9,6 +9,8 @@
 # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
 ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1"]
 
+EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
+
 INTERNAL_IPS = ["127.0.0.1", "10.0.2.2"]
 
 
@@ -18,7 +20,6 @@
 
 INSTALLED_APPS += ["debug_toolbar", "template_profiler_panel"]  # noqa F405
 
-
 MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"]  # noqa F405
 
 DEBUG_TOOLBAR_PANELS = [


Test patch:
Repository: imAsparky/django-cookiecutter

Issue:
[BUG]: settings.production.py:  settings.DEBUG is the correct syntax.
**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

-   imAsparky cookiecutter-pypackage version:
-   Python version:
-   OS: [e.g. iOS]
-   Browser [e.g. chrome, safari]
-   Version [e.g. 22]

**Smartphone (please complete the following information):**

-   Device: [e.g. iPhone6]
-   OS: [e.g. iOS8.1]
-   Browser [e.g. stock browser, safari]
-   Version [e.g. 22]

**Additional context**
Add any other context about the problem here.



Discussion:

Resolving patch:
diff --git a/{{cookiecutter.git_project_name}}/config/settings/base.py b/{{cookiecutter.git_project_name}}/config/settings/base.py
--- a/{{cookiecutter.git_project_name}}/config/settings/base.py
+++ b/{{cookiecutter.git_project_name}}/config/settings/base.py
@@ -13,31 +13,10 @@
 import os
 from django.utils.translation import ugettext_lazy as _
 from .username_blacklist import data as username_blacklist
-import environ
-
-
-env = environ.Env(
-    # set casting, default value
-    DEBUG=(bool, False)
-)
 
 # Build paths inside the project like this: BASE_DIR / 'subdir'.
 BASE_DIR = Path(__file__).resolve().parent.parent.parent
 
-
-# Quick-start development settings - unsuitable for production
-# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
-
-# SECURITY WARNING: keep the secret key used in production secret!
-SECRET_KEY = os.environ.get(
-    'DJANGO_SECRET_KEY', '!!!SET DJANGO_SECRET_KEY!!!')
-
-# SECURITY WARNING: don't run with debug turned on in production!
-# False if not in os.environ because of casting above
-DEBUG = env('DEBUG')
-
-INTERNAL_IPS = ["{{cookiecutter.INTERNAL_IPS}}"]
-
 # Application definition
 
 INSTALLED_APPS = [
@@ -108,16 +87,6 @@
 {% endif %}
 WSGI_APPLICATION = "{{ cookiecutter.project_slug}}.wsgi.application"
 
-# Database
-# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
-
-DATABASES = {
-    "default": {
-        "ENGINE": "django.db.backends.sqlite3",
-        "NAME": BASE_DIR / "db.sqlite3",
-    }
-}
-
 # Password validation
 # https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
 
@@ -187,6 +156,7 @@
 # https://docs.djangoproject.com/en/3.2/howto/static-files/
 
 STATIC_URL = "/static/"
+STATIC_ROOT = os.path.join(BASE_DIR, "static")
 
 # Default primary key field type
 # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field


Test patch:
Repository: imAsparky/django-cookiecutter

Issue:
[BUG]: Django 4.0 ugettext removed, update to gettext
**Describe the bug**
A clear and concise description of what the bug is.

Features removed in 4.0¶

These features have reached the end of their deprecation cycle and are removed in Django 4.0.

django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and ungettext_lazy() are removed.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

-   imAsparky cookiecutter-pypackage version:
-   Python version:
-   OS: [e.g. iOS]
-   Browser [e.g. chrome, safari]
-   Version [e.g. 22]

**Smartphone (please complete the following information):**

-   Device: [e.g. iPhone6]
-   OS: [e.g. iOS8.1]
-   Browser [e.g. stock browser, safari]
-   Version [e.g. 22]

**Additional context**
Add any other context about the problem here.



Discussion:

Resolving patch:
diff --git a/{{cookiecutter.git_project_name}}/config/settings/base.py b/{{cookiecutter.git_project_name}}/config/settings/base.py
--- a/{{cookiecutter.git_project_name}}/config/settings/base.py
+++ b/{{cookiecutter.git_project_name}}/config/settings/base.py
@@ -11,7 +11,7 @@
 
 from pathlib import Path
 import os
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 from .username_blacklist import data as username_blacklist
 
 # Build paths inside the project like this: BASE_DIR / 'subdir'.


Test patch:
Repository: imAsparky/django-cookiecutter

Issue:
[BUG]: Django 4.0 Requires >py3.8.  Drop support <py3.8
**Describe the bug**
A clear and concise description of what the bug is.

Django version | Python versions
-- | --
2.2 | 3.5, 3.6, 3.7, 3.8 (added in 2.2.8), 3.9 (added in 2.2.17)
3.0 | 3.6, 3.7, 3.8, 3.9 (added in 3.0.11)
3.1 | 3.6, 3.7, 3.8, 3.9 (added in 3.1.3)
3.2 | 3.6, 3.7, 3.8, 3.9, 3.10 (added in 3.2.9)
4.0 | 3.8, 3.9, 3.10



**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

-   imAsparky cookiecutter-pypackage version:
-   Python version:
-   OS: [e.g. iOS]
-   Browser [e.g. chrome, safari]
-   Version [e.g. 22]

**Smartphone (please complete the following information):**

-   Device: [e.g. iPhone6]
-   OS: [e.g. iOS8.1]
-   Browser [e.g. stock browser, safari]
-   Version [e.g. 22]

**Additional context**
Add any other context about the problem here.



Discussion:

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -21,19 +21,17 @@
         "Python 3",
         "template",
     ],
-    python_requires=">=3.6",
+    python_requires=">=3.8",
     classifiers=[
-        "Development Status :: 2 - Pre-Alpha",
+        "Development Status :: 3 - Alpha",
         "Environment :: Console",
         "Intended Audience :: Developers",
         "Natural Language :: English",
         "License :: OSI Approved :: BSD License",
-        "Programming Language :: Python",
         "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.6",
-        "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
+        "Programming Language :: Python :: 3.10",
         "Programming Language :: Python :: Implementation :: CPython",
         "Programming Language :: Python :: Implementation :: PyPy",
         "Topic :: Software Development",


Test patch:
diff --git a/.github/workflows/test_contribution.yaml b/.github/workflows/test_contribution.yaml
--- a/.github/workflows/test_contribution.yaml
+++ b/.github/workflows/test_contribution.yaml
@@ -13,7 +13,7 @@ jobs:
   test_contribs:
     strategy:
       matrix:
-        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
+        python-version: ["3.8", "3.9", "3.10"]
         os: [macos-latest, ubuntu-latest, windows-latest]
 
     runs-on: ${{ matrix.os }}
Repository: imAsparky/django-cookiecutter

Issue:
[BUG]: Django 4.0  USE_L10N is deprecated as of this release. Remove from options
**Describe the bug**
A clear and concise description of what the bug is.

Localization¶

In order to follow good practice, the default value of the USE_L10N setting is changed from False to True.

Moreover USE_L10N is deprecated as of this release. Starting with Django 5.0, by default, any date or number displayed by Django will be localized.

The {% localize %} tag and the localize/ unlocalize filters will still be honored by Django.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

-   imAsparky cookiecutter-pypackage version:
-   Python version:
-   OS: [e.g. iOS]
-   Browser [e.g. chrome, safari]
-   Version [e.g. 22]

**Smartphone (please complete the following information):**

-   Device: [e.g. iPhone6]
-   OS: [e.g. iOS8.1]
-   Browser [e.g. stock browser, safari]
-   Version [e.g. 22]

**Additional context**
Add any other context about the problem here.



Discussion:

Resolving patch:
diff --git a/{{cookiecutter.git_project_name}}/config/settings/base.py b/{{cookiecutter.git_project_name}}/config/settings/base.py
--- a/{{cookiecutter.git_project_name}}/config/settings/base.py
+++ b/{{cookiecutter.git_project_name}}/config/settings/base.py
@@ -119,12 +119,6 @@
     "es": "Spanish",
 }) %}
 {% if cookiecutter.USE_I18N == "True" %}
-{% if cookiecutter.USE_L10N == "True" %}
-USE_L10N = True
-{% else %}
-# Dperacated in 4.0
-USE_L10N = False
-{% endif %}
 USE_I18N = True
 
 LANGUAGE_CODE = "{{cookiecutter.LANGUAGE_CODE}}"
@@ -140,11 +134,6 @@
 
 TIME_ZONE = "{{cookiecutter.TIME_ZONE}}"
 {% else %}
-{% if cookiecutter.USE_L10N == "True" %}
-USE_L10N = True
-{% else %}
-USE_L10N = False
-{% endif %}
 USE_I18N = False
 
 LANGUAGE_CODE = "{{cookiecutter.LANGUAGE_CODE}}"


Test patch:
diff --git a/tests/test_bake_django.py b/tests/test_bake_django.py
--- a/tests/test_bake_django.py
+++ b/tests/test_bake_django.py
@@ -842,7 +842,6 @@ def test_baked_django_base_settings_base_file_ok(cookies):
     assert "    ('en', _(\"English\"))," in settings_file
     assert 'TIME_ZONE = "UTC"' in settings_file
     assert "USE_I18N = True" in settings_file
-    assert "USE_L10N = True" in settings_file
 
 
 def test_baked_django_settings_local_file_ok(cookies):
Repository: imAsparky/django-cookiecutter

Issue:
[BUG]: Django Allauth style  for templating is not working.
**Describe the bug**
A clear and concise description of what the bug is.

After updating django-allauth templates base.html the django-allauth templates do not reflect changes to base.html

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

-   imAsparky cookiecutter-pypackage version:
-   Python version:
-   OS: [e.g. iOS]
-   Browser [e.g. chrome, safari]
-   Version [e.g. 22]

**Smartphone (please complete the following information):**

-   Device: [e.g. iPhone6]
-   OS: [e.g. iOS8.1]
-   Browser [e.g. stock browser, safari]
-   Version [e.g. 22]

**Additional context**
Add any other context about the problem here.



Discussion:

Resolving patch:
diff --git a/{{cookiecutter.git_project_name}}/config/settings/base.py b/{{cookiecutter.git_project_name}}/config/settings/base.py
--- a/{{cookiecutter.git_project_name}}/config/settings/base.py
+++ b/{{cookiecutter.git_project_name}}/config/settings/base.py
@@ -60,7 +60,7 @@
 TEMPLATES = [
     {
         "BACKEND": "django.template.backends.django.DjangoTemplates",
-        "DIRS": [],
+        "DIRS": [os.path.join(BASE_DIR, "templates")],
         "APP_DIRS": True,
         "OPTIONS": {
             "context_processors": [


Test patch:
Repository: imAsparky/django-cookiecutter

Issue:
[BUG]: Selecting django-allauth=n does not remove django-allauth HTML templates.
**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

-   imAsparky cookiecutter-pypackage version:
-   Python version:
-   OS: [e.g. iOS]
-   Browser [e.g. chrome, safari]
-   Version [e.g. 22]

**Smartphone (please complete the following information):**

-   Device: [e.g. iPhone6]
-   OS: [e.g. iOS8.1]
-   Browser [e.g. stock browser, safari]
-   Version [e.g. 22]

**Additional context**
Add any other context about the problem here.



Discussion:

Resolving patch:
diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py
--- a/hooks/post_gen_project.py
+++ b/hooks/post_gen_project.py
@@ -53,6 +53,8 @@
         compose {% endif %}',
     '{% if cookiecutter.deploy_with_docker == "n" %} \
         docker-entrypoint.sh {% endif %}',
+    '{% if cookiecutter.use_django_allauth == "n" %} \
+        templates/account {% endif %}',
 ]
 
 # Helper functions


Test patch:
diff --git a/tests/test_bake_django.py b/tests/test_bake_django.py
--- a/tests/test_bake_django.py
+++ b/tests/test_bake_django.py
@@ -76,6 +76,24 @@ def test_baked_django_without_allauth_settings_ok(cookies):
     )
 
 
+def test_baked_django_with_allauth_templates_ok(cookies):
+    """Test Django allauth HTML templates have been generated."""
+    default_django = cookies.bake()
+
+    templates_path = default_django.project_path / "templates/account"
+
+    assert os.path.isdir(templates_path)
+
+
+def test_baked_django_without_allauth_templates_ok(cookies):
+    """Test Django allauth HTML templates have not been generated."""
+    non_default_django = cookies.bake(extra_context={"use_django_allauth": "n"})
+
+    templates_path = non_default_django.project_path / "templates/account"
+
+    assert not os.path.isdir(templates_path)
+
+
 def test_baked_django_with_allauth_url_ok(cookies):
     """Test Django allauth url.py file entry has been generated."""
     default_django = cookies.bake()
Repository: imAsparky/django-cookiecutter

Issue:
[BUG]: New project does not remove django-allauth LOGIN/LOGOUT urls from base.py
**Describe the bug**
A clear and concise description of what the bug is.

These two settings are for django-allauth. 
If use_django_allauth=n, delete these settings on project generation. 

LOGIN_REDIRECT_URL = "/admin/"
LOGOUT_REDIRECT_URL = '/accounts/login/'

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

-   imAsparky cookiecutter-pypackage version:
-   Python version:
-   OS: [e.g. iOS]
-   Browser [e.g. chrome, safari]
-   Version [e.g. 22]

**Smartphone (please complete the following information):**

-   Device: [e.g. iPhone6]
-   OS: [e.g. iOS8.1]
-   Browser [e.g. stock browser, safari]
-   Version [e.g. 22]

**Additional context**
Add any other context about the problem here.



Discussion:

Resolving patch:
diff --git a/{{cookiecutter.git_project_name}}/config/settings/base.py b/{{cookiecutter.git_project_name}}/config/settings/base.py
--- a/{{cookiecutter.git_project_name}}/config/settings/base.py
+++ b/{{cookiecutter.git_project_name}}/config/settings/base.py
@@ -41,8 +41,11 @@
 {% else %}
 SITE_ID = {{cookiecutter.SITE_ID}}
 {% endif %}
+{% if cookiecutter.use_django_allauth == "y" %}
+# LOGIN_REDIRECT_URL For new project convenience, change to your project requirements.
 LOGIN_REDIRECT_URL = "/admin/"
 LOGOUT_REDIRECT_URL = '/accounts/login/'
+{% endif %}
 
 MIDDLEWARE = [
     "django.middleware.security.SecurityMiddleware",


Test patch:
diff --git a/tests/test_bake_django.py b/tests/test_bake_django.py
--- a/tests/test_bake_django.py
+++ b/tests/test_bake_django.py
@@ -50,6 +50,8 @@ def test_baked_django_with_allauth_settings_ok(cookies):
     assert (
         '                "django.template.context_processors.request",' in settings_file
     )
+    assert 'LOGIN_REDIRECT_URL = "/admin/"' in settings_file
+    assert "LOGOUT_REDIRECT_URL = '/accounts/login/'" in settings_file
     assert (
         "ACCOUNT_UNIQUE_EMAIL = True                      # Default dj-allauth"
         in settings_file
@@ -70,12 +72,18 @@ def test_baked_django_without_allauth_settings_ok(cookies):
     assert (
         '                "django.template.context_processors.request",' in settings_file
     )
+    assert 'LOGIN_REDIRECT_URL = "/admin/"' not in settings_file
+    assert "LOGOUT_REDIRECT_URL = '/accounts/login/'" not in settings_file
     assert (
         "ACCOUNT_UNIQUE_EMAIL = True                      # Default dj-allauth"
         not in settings_file
     )
 
 
+#  assert 'LOGIN_REDIRECT_URL = "/admin/"' in settings_file
+#  assert "LOGOUT_REDIRECT_URL = '/accounts/login/'" in settings_file
+
+
 def test_baked_django_with_allauth_templates_ok(cookies):
     """Test Django allauth HTML templates have been generated."""
     default_django = cookies.bake()
Repository: imAsparky/django-cookiecutter

Issue:
[CHORE]: Re-instate django-debug-toolbar.
**What is the chore?**

django-debug-toolbar supports Django 4.0 now.



Discussion:

Resolving patch:
diff --git a/{{cookiecutter.git_project_name}}/config/settings/local.py b/{{cookiecutter.git_project_name}}/config/settings/local.py
--- a/{{cookiecutter.git_project_name}}/config/settings/local.py
+++ b/{{cookiecutter.git_project_name}}/config/settings/local.py
@@ -28,33 +28,34 @@
 # https://github.com/node13h/django-debug-toolbar-template-profiler
 
 # Django 4.0 does not support ugettext_lazy any more.
-# Debug toolbar still requires ugettext_lazy.  Disabled until it runs on 4.0
-
-# INSTALLED_APPS += ["debug_toolbar", "template_profiler_panel"]  # noqa F405
-
-# MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"]  # noqa F405
-
-# DEBUG_TOOLBAR_PANELS = [
-#     "debug_toolbar.panels.history.HistoryPanel",
-#     "debug_toolbar.panels.versions.VersionsPanel",
-#     "debug_toolbar.panels.timer.TimerPanel",
-#     "debug_toolbar.panels.settings.SettingsPanel",
-#     "debug_toolbar.panels.headers.HeadersPanel",
-#     "debug_toolbar.panels.request.RequestPanel",
-#     "debug_toolbar.panels.sql.SQLPanel",
-#     "debug_toolbar.panels.staticfiles.StaticFilesPanel",
-#     "debug_toolbar.panels.templates.TemplatesPanel",
-#     "debug_toolbar.panels.cache.CachePanel",
-#     "debug_toolbar.panels.signals.SignalsPanel",
-#     "debug_toolbar.panels.logging.LoggingPanel",
-#     "debug_toolbar.panels.redirects.RedirectsPanel",
-#     "debug_toolbar.panels.profiling.ProfilingPanel",
-#     "template_profiler_panel.panels.template.TemplateProfilerPanel",
-# ]
-
-# DEBUG_TOOLBAR_CONFIG = {
-#     "DISABLE_PANELS": ["debug_toolbar.panels.redirects.RedirectsPanel"],
-# }
+# Debug toolbar template profiler still requires ugettext_lazy.  Disabled until it runs on 4.0
+
+# INSTALLED_APPS += ["template_profiler_panel"]  # noqa F405
+INSTALLED_APPS += ["debug_toolbar"]  # noqa F405
+
+MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"]  # noqa F405
+
+DEBUG_TOOLBAR_PANELS = [
+    "debug_toolbar.panels.history.HistoryPanel",
+    "debug_toolbar.panels.versions.VersionsPanel",
+    "debug_toolbar.panels.timer.TimerPanel",
+    "debug_toolbar.panels.settings.SettingsPanel",
+    "debug_toolbar.panels.headers.HeadersPanel",
+    "debug_toolbar.panels.request.RequestPanel",
+    "debug_toolbar.panels.sql.SQLPanel",
+    "debug_toolbar.panels.staticfiles.StaticFilesPanel",
+    "debug_toolbar.panels.templates.TemplatesPanel",
+    "debug_toolbar.panels.cache.CachePanel",
+    "debug_toolbar.panels.signals.SignalsPanel",
+    "debug_toolbar.panels.logging.LoggingPanel",
+    "debug_toolbar.panels.redirects.RedirectsPanel",
+    "debug_toolbar.panels.profiling.ProfilingPanel",
+    # "template_profiler_panel.panels.template.TemplateProfilerPanel",
+]
+
+DEBUG_TOOLBAR_CONFIG = {
+    "DISABLE_PANELS": ["debug_toolbar.panels.redirects.RedirectsPanel"],
+}
 
 DATABASES = {
     "default": {


Test patch: