Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Small Django 2.0.3 Compatibility Tweaks #1525

Closed
@aolives

Description

@aolives

In which file did you encounter the issue?

python-docs-samples/container_engine/django_tutorial/mysite/settings.py

Did you change the file? If so, how?

-MIDDLEWARE_CLASSES = (
+MIDDLEWARE = (
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.middleware.common.CommonMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
-    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
     'django.contrib.messages.middleware.MessageMiddleware',
     'django.middleware.clickjacking.XFrameOptionsMiddleware',
     'django.middleware.security.SecurityMiddleware',
 )

Describe the issue

The admin page fails to run in Django 2.0.3, which is the version used in the Running Django on Kubernetes Engine Tutorial per https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/container_engine/django_tutorial/requirements.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions