An awesome and responsive django-allauth theme based on tailwind
Project description
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-allauth-theme-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9033f92d9753e172c5a3208f9de2b1adf3e7265599355619eb095c7e98a08738 |
|
MD5 | 490dc17eeca20f11e3c794e993262c9a |
|
BLAKE2b-256 | a48fc151c8e0a9fc6137a711be4d9d3f5e880f6ce215116f6e34aff52d94a10c |