-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.12 #4644
Comments
As of today, we'd also need to update to Django 5.0 first:
https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django |
Since november django is being tested with 3.12: django/django#16274 |
Its seems that 4.2.7 will officially support 3.12: https://forum.djangoproject.com/t/django-4-2-lts-compatibility-with-python-3-12/24508/3 |
As per #4903, it looks like we were generating projects running Python 3.12 for about a month, and nobody really noticed, so we're probably good to move this forward. The projects which are still red in the table above are probably just signalling compatibilty in their trove classifiers. I've upgraded one of a project and the main blocker I hit was this one, with Django debug toolbar, when making concurrent requests locally. |
Originally posted by @chayim in jazzband/django-redis#689 (comment) The |
@foarsitter the issue django-commons/django-debug-toolbar#1875 still occurs quite frequently with 3.12 and this django release. Its borderline unusable with docker/async config for development without disabling debug toolbar entirely. |
@akashvibhute What do you want me to do? By yourself you have two options: 1) fix the issue in the toolbar 2) revert to python 3.11 |
You can also untick the profiling panel in the debug toolbar, if you don't need it, and you can benefit from the other panels (SQL etc...) |
@foarsitter nothing, I was just informing. @browniebroke |
I just realized that I can also completely disable profile panel from adding it to DISABLE_PANELS under DEBUG_TOOLBAR_CONFIG in local settings file. @browniebroke maybe that should be the default in the project till the issue is closed. |
Feel free to send us a PR with some comments explaining why it's disabled and linking to the DDT issue 👍🏻 |
Yup, me too by adding this: DEBUG_TOOLBAR_CONFIG = {
"DISABLE_PANELS": [
"debug_toolbar.panels.profiling.ProfilingPanel", # additional one
"debug_toolbar.panels.redirects.RedirectsPanel",
],
"SHOW_TEMPLATE_CONTEXT": True,
} |
Abused the
create_django_issue.py
script to create a table for Python 3.12.There is a lot of work to do:
base.txt
local.txt
production.txt
The text was updated successfully, but these errors were encountered: