Skip to content

Lightmatter/allauth-jinja

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

allauth-jinja

The complete set of django-allauth templates rewritten in jinja.

Installation & Usage

[not published yet]

Add allauth_jinja to your installed apps above allauth, e.g.

INSTALLED_APPS = [
  ...
  allauth_jinja,
  allauth,
  ...
]

In your templates settings for jinja you must have at least the following

{
  "APP_DIRS": True,
  "OPTIONS": {
    "match_extension": None,
    "app_dirname": "jinja2",
    "undefined": "jinja2.Undefined",
    "context_processors": [
      "django.template.context_processors.request",
      "django.contrib.messages.context_processors.messages",
      ...
    ],
    "globals": {
      ...,
      "user_display": "allauth_jinja.account.templatetags.account.user_display",
      ...
    }
  }
}

Depending on what templates you use you'll need to add the relevant global functions.