Skip to main content

django-allauth-theme

An awesome and responsive django-allauth theme based on tailwind.

Install

pip install django-allauth-theme

Configuring the settings file

First of all, add allauth_theme and crispy_forms to INSTALLED_APPS.

INSTALLED_APPS = (
  ...
  'crispy_forms',
  'allauth_theme',
  ...
)

Add following context processors to the list:

TEMPLATES = [
 {
   ...
   'OPTIONS': {
      'context_processors': [
        ...
        'allauth_theme.context_processors.welcome_text'
   ],
  }
 }
]

Now include the urls in your urls.py

urlpatterns = [
    ...
    path('', include('allauth_theme.urls')),
    ...
]

Configuration for settings:

DAT_WELCOME_TITLE = 'Welcome Title'  # title
DAT_WELCOME_TITLE_MOBILE = 'Welcome mobile'  # mobile title
DAT_WELCOME_TEXT = 'Description of your project'  # text for your project
DAT_GOOGLE_ENABLE_ONETAP_LOGIN = True  # decide if you want to show the google one tap login
DAT_GOOGLE_CLIENT_ID = ''  # google client id , e.g. XXXXXXXXXX39-62ckbbeXXXXXXXXXXXXXXXXXXXXXm1.apps.googleusercontent.com
DAT_BASE_URL = ''  # e.g. http://localhost:8000
DAT_TOS_MESSAGE = 'By registering, you agree to our <a href="">Terms of Service</a> and <a href="">Privacy Policy.</a>'  # optional

Google One Tap Login

If you want to use the google one tap you must you must include following changes to your settings for developement environment:

Some notices for the developing environment

SECURE_REFERRER_POLICY = 'no-referrer-when-downgrade'

Add http://localhost, http://localhost:8000, http://127.0.0.1 and http://127.0.0.1:8000 to your "Authorized JavaScript origins" in your google developer console. While you are working in the development environment you must use "localhost" instead of "127.0.0.1". As "Authorized redirect URIs" just use following URIs if you are working in the development environment:

http://localhost:8000/accounts/google/login/callback/

You can add also use 127.0.0.1 as URI if you don't want to use Google One Tap functionally while developing.

Release files for django-allauth-theme 0.7.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-allauth-theme 0.7.3
File Size Uploaded
django_allauth_theme-0.7.3.tar.gz 25.4 kB Details

Release files / django_allauth_theme-0.7.3.tar.gz

Download URL django_allauth_theme-0.7.3.tar.gz
Size 25.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ff775225a5842854ff409802299b1f3b4f99a795927c9d0f9d61e7024c6630e5
BLAKE2b-256 checksum
How to use checksums
01d08e46581a8bab45659bfee62faf4f2b1f1545735dbd7b6cf9304db8ac59e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.7.3 This release

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page