Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.
This repository was archived by the owner on Jun 12, 2026. It is now read-only.

Update to Django 4 #2

Description

The newest release of Django as of the time of this issue opening is 4.04. The current version of Django supported in this repo is 1.9X.

Key changes to make include:

  • Calls to load staticfiles should now call load static instead.
  • django.utils.translation.ugettext_lazy is now django.utils.translation.gettext_lazy
  • MIDDLEWARE_CLASSES has been renamed to MIDDLEWARE.
  • Session authentication middleware has been deprecated.
  • The url() function in django.conf.urls is now re_path().
  • The Login operation in django.contrib.auth has been replaced with LoginView.
  • Requirements.txt should indicate this new version.

A PR for these changes is forthcoming.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions