django-allauth-theme


Namedjango-allauth-theme JSON
Version 0.6.0 PyPI version JSON
download
home_pagehttp://pypi.python.org/pypi/django-allauth-theme/
SummaryAn awesome and responsive django-allauth theme based on tailwind
upload_time2023-02-02 15:35:47
maintainer
docs_urlNone
authorLeonardo Di Lella
requires_python>=3.5
licenseLICENSE
keywords django auth account social openid twitter facebook oauth registration theme tailwindcss
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-allauth-theme

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

## Install

```bash
pip install django-allauth-theme
```

### Configuring the settings file

First of all, add `allauth_theme` and `crispy_forms` to `INSTALLED_APPS`.

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

Add following context processors to the list:

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

Now include the urls in your urls.py

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

Configuration for settings:

```python
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

```python
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.

            

Raw data

            {
    "_id": null,
    "home_page": "http://pypi.python.org/pypi/django-allauth-theme/",
    "name": "django-allauth-theme",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "",
    "keywords": "django auth account social openid twitter facebook oauth registration theme tailwindcss",
    "author": "Leonardo Di Lella",
    "author_email": "leonardo.dilella@mobileapart.com",
    "download_url": "https://files.pythonhosted.org/packages/9c/af/8cdb964ef4ef373d025597674ef179be7c91e22938c3a8faf1c6cc0d81aa/django-allauth-theme-0.6.0.tar.gz",
    "platform": null,
    "description": "# django-allauth-theme\n\nAn awesome and responsive django-allauth theme based on tailwind.\n\n## Install\n\n```bash\npip install django-allauth-theme\n```\n\n### Configuring the settings file\n\nFirst of all, add `allauth_theme` and `crispy_forms` to `INSTALLED_APPS`.\n\n```python\nINSTALLED_APPS = (\n  ...\n  'crispy_forms',\n  'allauth_theme',\n  ...\n)\n```\n\nAdd following context processors to the list:\n\n```python\nTEMPLATES = [\n {\n   ...\n   'OPTIONS': {\n      'context_processors': [\n        ...\n        'allauth_theme.context_processors.welcome_text'\n   ],\n  }\n }\n]\n```\n\nNow include the urls in your urls.py\n\n```python\nurlpatterns = [\n    ...\n    path('', include('allauth_theme.urls')),\n    ...\n]\n```\n\nConfiguration for settings:\n\n```python\nDAT_WELCOME_TITLE = 'Welcome Title'  # title\nDAT_WELCOME_TITLE_MOBILE = 'Welcome mobile'  # mobile title\nDAT_WELCOME_TEXT = 'Description of your project'  # text for your project\nDAT_GOOGLE_ENABLE_ONETAP_LOGIN = True  # decide if you want to show the google one tap login\nDAT_GOOGLE_CLIENT_ID = ''  # google client id , e.g. XXXXXXXXXX39-62ckbbeXXXXXXXXXXXXXXXXXXXXXm1.apps.googleusercontent.com\nDAT_BASE_URL = ''  # e.g. http://localhost:8000\n```\n\n### Google One Tap Login\n\nIf you want to use the google one tap you must you must include following changes to your settings for developement environment:\n\n#### Some notices for the developing environment\n\n```python\nSECURE_REFERRER_POLICY = 'no-referrer-when-downgrade'\n```\n\nAdd 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:\n\n```http://localhost:8000/accounts/google/login/callback/```\n\nYou can add also use 127.0.0.1 as URI if you don't want to use Google One Tap functionally while developing.\n",
    "bugtrack_url": null,
    "license": "LICENSE",
    "summary": "An awesome and responsive django-allauth theme based on tailwind",
    "version": "0.6.0",
    "split_keywords": [
        "django",
        "auth",
        "account",
        "social",
        "openid",
        "twitter",
        "facebook",
        "oauth",
        "registration",
        "theme",
        "tailwindcss"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9caf8cdb964ef4ef373d025597674ef179be7c91e22938c3a8faf1c6cc0d81aa",
                "md5": "ee409e7062aba3771645e42322858eab",
                "sha256": "3f41e1aaac24cb63f24661e6556b57cf68108082c6fd2cbbc56da2ae3c05f820"
            },
            "downloads": -1,
            "filename": "django-allauth-theme-0.6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ee409e7062aba3771645e42322858eab",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 25461,
            "upload_time": "2023-02-02T15:35:47",
            "upload_time_iso_8601": "2023-02-02T15:35:47.567866Z",
            "url": "https://files.pythonhosted.org/packages/9c/af/8cdb964ef4ef373d025597674ef179be7c91e22938c3a8faf1c6cc0d81aa/django-allauth-theme-0.6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-02 15:35:47",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "django-allauth-theme"
}
        
Elapsed time: 0.03635s