Hi,
I’m a novice with this framework, but have an old django-1.6 project I started and want to work on again. I have a new install with django-5.0.2 and python-3.11
I’ve fixed a few deprecated details using check, but I can’t figure out how to get past (admin.E402)
‘django.contrib.auth.context_processors.auth’ must be enabled in DjangoTemplates (TEMPLATES) if using the default auth backend in order to use the admin application.
I think I had some kind of auth in the old version, but I don’t care if it’s disabled globally for now, just to get it working on localhost. (I do want it working eventually.)
I’m just hacking at the moment, but it will be great if I can get the project working, and not have to recreate it from scratch.
My settings.py has…
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [os.path.join(PROJECT_PATH, 'templates/'),],
"APP_DIRS": True,
"OPTIONS": {
'context_processors': [
'django.contrib.messages.context_processors.messages',
],
},
},
]
INSTALLED_APPS = (
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
. .
)
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware'
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
Any suggestions appreciated!