Skip to content
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

Update Django version to 4.2 (LTS) and Python to 3.12 in Django example #538

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

weslord
Copy link

@weslord weslord commented Dec 21, 2024

Django 3.2 and Python 3.7 are no longer supported.

I also ran django-admin startproject to update the project files.

The diff looks hairier than it is. Most of the lines are startproject updating the version number in comments.

Here are the concrete changes:

  • URL config uses path() instead of url() (this is the only breaking change)
  • Settings uses pathlib.Path instead of path.join
  • Added new ASGI config
  • DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant