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

Error 'WSGIRequest' object has no attribute 'identity_context_data' #14

Open
ilyasse05 opened this issue Oct 7, 2023 · 0 comments
Open

Comments

@ilyasse05
Copy link

HEllo,

i get this error "'WSGIRequest' object has no attribute 'identity_context_data'" when i deploy in azure webapp,
how ever localy it's working fine

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [x] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Django LOG
`

AttributeError at /admin/login/

'WSGIRequest' object has no attribute 'identity_context_data'

Request Method: | GET
Request URL | https://xxxxxxxxx.azurewebsites.net/admin/login/?next=/admin/
Django Version | 4.1
Exception Type | AttributeError
Exception Value | 'WSGIRequest' object has no attribute 'identity_context_data'
Exception Location | /tmp/8dbc756a72bfad6/api_data/context_processors.py, line 6, in context
Raised during | django.contrib.admin.sites.login
Python Executable | /opt/python/3.9.17/bin/python3.9
Python Version | 3.9.17
Python Path | ['/tmp/8dbc756a72bfad6', '/opt/python/3.9.17/bin', '/opt/startup/app_logs', '/tmp/8dbc756a72bfad6/antenv/lib/python3.9/site-packages', '/opt/python/3.9.17/lib/python39.zip', '/opt/python/3.9.17/lib/python3.9', '/opt/python/3.9.17/lib/python3.9/lib-dynload', '/opt/python/3.9.17/lib/python3.9/site-packages', '/opt/python/3.9.17/lib/python3.9/site-packages/viztracer/attach_process']

`

Expected/desired behavior

OS and Version?

Linux Azure WebApp

Versions

Mention any other details that might be useful

INSTALLED_APPS
['django.contrib.admin', 'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'whitenoise.runserver_nostatic',
'graphene_django',
'administration',
'portal',
'accounts']

MIDDLEWARE
['django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']


Thanks! We'll be in touch soon.

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

No branches or pull requests

2 participants