-
Notifications
You must be signed in to change notification settings - Fork 282
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
Support Django 5.0 and Python 3.12, drop Python 3.8 #373
Conversation
.github/workflows/python-app.yml
Outdated
django_version: | ||
- '3.2' | ||
- '4.0' | ||
- '4.1' | ||
- '4.2' | ||
- '5.0' | ||
python_version: | ||
- '3.7' | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
- '3.12' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
splitting one per line will reduce the diff noise when adding/removing versions in the future
.github/workflows/python-app.yml
Outdated
- '4.2' | ||
- '5.0' | ||
python_version: | ||
- '3.7' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also be happy to drop Python 3.7 support in this PR, since it’s EOL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, feel free to remove it.
@@ -71,6 +71,7 @@ def run_tests(self): | |||
'context_processors': [ | |||
'django.contrib.auth.context_processors.auth', | |||
'django.contrib.messages.context_processors.messages', | |||
'django.template.context_processors.request', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes this system check warning:
?: (admin.W411) 'django.template.context_processors.request' must be enabled in DjangoTemplates (TEMPLATES) in order to use the admin navigation sidebar.
Thanks for the PR, I'll merge after you remove the support of Python 3.7 then. |
1a8840e
to
36de573
Compare
Done. |
Copied most of the approach from 35d10aa. I don’t see any new warnings on Python 3.12 + Django 5.0 when running locally.