Search code examples
djangodjango-allauth

Custom allauth template with Django 1.8


I read many different setup for getting allauth working with django in general, and 1.8 specifically but none is working.

here is my current setup with allauth 0.29:

TEMPLATES = [
    {
        'BACKEND' : 'django.template.backends.django.DjangoTemplates',
        'DIRS': [ os.path.join( BASE_DIR, 'templates' ), os.path.join( BASE_DIR, 'templates', 'allauth' ) ],
        'APP_DIRS': True,
        'OPTIONS' : {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

With all Allauth accounts templates in

basedir/templates/allauth/accounts

Altough all allauth template pickup the site's base template, any modification to the template in tis directory are royally ignored. if you have this working with django 1.8 please describe your setup.


Solution

  • To override templates you must put a folder with the name of the app inside of your templates folder. In your case you want something like:

    templates/account