Skip to content
Advertisement

Django: issue with template path for tenant

I have an app where depending on its category, a tenant is either directed to the app (and templates) at /dashboard/templates/dashboard or /dashboard2/templates/dashboard2.

somehow, for dashboard2, the app is not found by Django and it tries to find those templates under dashboard.

here is a dashboard2/views.py

JavaScript

and the error:

JavaScript

and the traceback:

JavaScript

when try specifying /dashboard2/Supplier2.html I still get the same error in Django:

JavaScript

here is what I have in settings.py for templates:

JavaScript

at this point, I don’t know what else to try

Advertisement

Answer

Fix the settings as below:

JavaScript
Advertisement