1👍
✅
If your simple HttpResponse('Hi')
works but your Response
with the rendered template is not, this has nothing to do with your i18n prefixed URLs but with the loading of the template.
Make sure the template actually exists in PROJECT_ROOT/sitepages/templates/sitepages/news_events_page_listing.html'
and sitepages
is listed in your INSTALLED_APPS
.
As an alternative, you could move the template to any app you’ve listed in your INSTALLED_APPS
and make sure the path, starting from the templates/
directory of that app, matches the template name you use in your view.
Source:stackexchange.com