1👍
✅
You can find the solution here. After adding settings please do python3 manage.py update_index
or you can do it by code
from django.core import management
management.call_command('update_index')
Source:stackexchange.com