1π
β
I think there is a problem with your template directory structure. Django template loader is looking for a directory called βtemplatesβ within your app.
Your templates are located under core/login_register/
, so django canβt find them.
You can use the following structure for your templates :
βββ yourapp
βββ templates
βββ yourapp
βββ base.html
βββ index.html
This way, django will find your templates, and youβll even be able to override these templates in other apps :
βββ yourapp
βββ templates
βββ yourapp
βββ base.html
βββ index.html
βββ anotherapp
βββ templates
βββ yourapp
βββ base.html # it will override the template yourapp/templates/yourapp/base.html
Itβs a common structure for django projects.
π€Agate
Source:stackexchange.com