[Fixed]-Override templates of external app in Django


The way I tend to figure out what’s going on (with DEBUG set to True), is to have a view render a template that didn’t exist, and look at the list of locations Django tried to load templates from (which will be included in the error page output).

What templates are the views trying to render? If they’re trying to render allauth/foo.html, then you’ll want to add my_project_dir/templates to your TEMPLATE_DIRS setting, not my_project_dir/templates/allauth.


Check the INSTALLED_APPS order, the first template matched will be rendered.

With this in mind you can just add the template under the same path in a custom app.

Leave a comment