How to override template in django-allauth?

Red picture Red · Sep 13, 2013 · Viewed 10.7k times · Source

Answers in other questions leave impression that this is in fact very easy:

However, I can't get it to work at all.

From example app settings I can see that django-allauth supposedly expects it's templates to be in account, openid and socialaccount directories. But when I put template at TEMPLATE_DIR/account/signup.html it doesn't get loaded, signup view displays template bundled with django-allauth. What do I miss?

Answer

Red picture Red · Sep 15, 2013

I eventually resorted to loading my app before django-allauth. In settings.py:

INSTALLED_APPS = (
    ...
    'myapp',
    'allauth',
    'allauth.account'
)

This solution goes against what's presented in example app, but I was not able to solve it in other way.