Hello django develops, We are using django for over a year now. But for past few days we are unable to use admin part of django(Django Administation) both on localhost and production. We are using DRF.
I realized I was passing incorrect app name in template OPTIONS argument in settings.py. But console was not showing any error, all APIs were working as expected but django admin was showing timeout error with https status code 304 on console. But after removing line below and reproducing error by removing and re-adding the same line a few times this worked. The problem was with line highlighted below in OPTIONS.
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'user/email_templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'**myapp**.custom_context_processors.custom_data' // this line was causing error
],
},
},
]