Skip to content

Update to Django 4 #2

@feaselkl

Description

@feaselkl

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.

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