django-auth-style


Namedjango-auth-style JSON
Version 0.11.0 PyPI version JSON
download
home_pageNone
SummaryDjango template styling for django-allauth and django-oauth-toolkit.
upload_time2025-07-23 19:17:30
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords allauth django django-allauth django-oauth-toolkit kitware-resonant resonant style styling
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-auth-style
[![PyPI](https://img.shields.io/pypi/v/django-auth-style)](https://pypi.org/project/django-auth-style/)

django-auth-style provides Django template styling for
[django-allauth](https://django-allauth.readthedocs.io/)
and [django-oauth-toolkit](https://django-oauth-toolkit.readthedocs.io/).

## Installation
### django-allauth Support
To enable support for django-allauth, install with:
```bash
pip install django-auth-style[allauth]
```

Then enable the Django app:
```python
# settings.py
INSTALLED_APPS = [
    # Any project-local apps should come before "auth_style",
    # so templates can be overridden as needed
    'my_django_app.apps.MyDjangoAppConfig',
    ...,
    'auth_style',
    ...,
    # "allauth" must come after "auth_style"
    'allauth',
    'allauth.account',
    'allauth.socialaccount',
]
MIDDLEWARE = [
    ...,
    # CurrentSiteMiddleware is optional, but recommended to show site branding
    'django.contrib.sites.middleware.CurrentSiteMiddleware',
    ...
]
```

### django-oauth-toolkit Support
To enable support for django-oauth-toolkit, install with:
```bash
pip install django-auth-style[oauth-toolkit]
```

Then enable the Django app:
```python
# settings.py
INSTALLED_APPS = [
    # Any project-local apps should come before "auth_style",
    # so templates can be overridden as needed
    'my_django_app.apps.MyDjangoAppConfig',
    ...,
    'auth_style',
    ...,
    # "oauth2_provider" must come after "auth_style"
    'oauth2_provider',
]
```

## Usage
When django-auth-style is properly installed alongside django-allauth or django-oauth-toolkit,
rendered templates will automatically be overridden with styled alternatives.

### Template Override
To customize the site name (in the upper-left corner), create `auth_style/site_name.html` within your project's templates directory. You will be responsible for applying appropriate styling to any text.

For example:

```html
<span style="font-size: 1.5rem; font-weight: bold; color: #2563eb;">
  🚀 My Custom App
</span>
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "django-auth-style",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "\"Kitware, Inc.\" <kitware@kitware.com>",
    "keywords": "allauth, django, django-allauth, django-oauth-toolkit, kitware-resonant, resonant, style, styling",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/db/79/a713d4fcdf24fe3b41da67d82c8975261368942181068c7692cb7ae743f6/django_auth_style-0.11.0.tar.gz",
    "platform": null,
    "description": "# django-auth-style\n[![PyPI](https://img.shields.io/pypi/v/django-auth-style)](https://pypi.org/project/django-auth-style/)\n\ndjango-auth-style provides Django template styling for\n[django-allauth](https://django-allauth.readthedocs.io/)\nand [django-oauth-toolkit](https://django-oauth-toolkit.readthedocs.io/).\n\n## Installation\n### django-allauth Support\nTo enable support for django-allauth, install with:\n```bash\npip install django-auth-style[allauth]\n```\n\nThen enable the Django app:\n```python\n# settings.py\nINSTALLED_APPS = [\n    # Any project-local apps should come before \"auth_style\",\n    # so templates can be overridden as needed\n    'my_django_app.apps.MyDjangoAppConfig',\n    ...,\n    'auth_style',\n    ...,\n    # \"allauth\" must come after \"auth_style\"\n    'allauth',\n    'allauth.account',\n    'allauth.socialaccount',\n]\nMIDDLEWARE = [\n    ...,\n    # CurrentSiteMiddleware is optional, but recommended to show site branding\n    'django.contrib.sites.middleware.CurrentSiteMiddleware',\n    ...\n]\n```\n\n### django-oauth-toolkit Support\nTo enable support for django-oauth-toolkit, install with:\n```bash\npip install django-auth-style[oauth-toolkit]\n```\n\nThen enable the Django app:\n```python\n# settings.py\nINSTALLED_APPS = [\n    # Any project-local apps should come before \"auth_style\",\n    # so templates can be overridden as needed\n    'my_django_app.apps.MyDjangoAppConfig',\n    ...,\n    'auth_style',\n    ...,\n    # \"oauth2_provider\" must come after \"auth_style\"\n    'oauth2_provider',\n]\n```\n\n## Usage\nWhen django-auth-style is properly installed alongside django-allauth or django-oauth-toolkit,\nrendered templates will automatically be overridden with styled alternatives.\n\n### Template Override\nTo customize the site name (in the upper-left corner), create `auth_style/site_name.html` within your project's templates directory. You will be responsible for applying appropriate styling to any text.\n\nFor example:\n\n```html\n<span style=\"font-size: 1.5rem; font-weight: bold; color: #2563eb;\">\n  \ud83d\ude80 My Custom App\n</span>\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Django template styling for django-allauth and django-oauth-toolkit.",
    "version": "0.11.0",
    "project_urls": {
        "Bug Reports": "https://github.com/kitware-resonant/django-auth-style/issues",
        "Repository": "https://github.com/kitware-resonant/django-auth-style"
    },
    "split_keywords": [
        "allauth",
        " django",
        " django-allauth",
        " django-oauth-toolkit",
        " kitware-resonant",
        " resonant",
        " style",
        " styling"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7ef27b72dd4f734df160e8a3fed28f9327a17a8003accea1cde500f45ca672e2",
                "md5": "2c1671a571f983cd66cc2e57bb0b8094",
                "sha256": "bed6b7de772932fac69ed06351c95d8e3c5eb9e20bbfef96b90cdfd02abd64d2"
            },
            "downloads": -1,
            "filename": "django_auth_style-0.11.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2c1671a571f983cd66cc2e57bb0b8094",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 1404339,
            "upload_time": "2025-07-23T19:17:28",
            "upload_time_iso_8601": "2025-07-23T19:17:28.301814Z",
            "url": "https://files.pythonhosted.org/packages/7e/f2/7b72dd4f734df160e8a3fed28f9327a17a8003accea1cde500f45ca672e2/django_auth_style-0.11.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "db79a713d4fcdf24fe3b41da67d82c8975261368942181068c7692cb7ae743f6",
                "md5": "7036fdecdd78710db8bfc60a382cda57",
                "sha256": "94dd9922616625593f1204160db880bc9b3cccca76baa7bc967af1871875c977"
            },
            "downloads": -1,
            "filename": "django_auth_style-0.11.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7036fdecdd78710db8bfc60a382cda57",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 1398689,
            "upload_time": "2025-07-23T19:17:30",
            "upload_time_iso_8601": "2025-07-23T19:17:30.119365Z",
            "url": "https://files.pythonhosted.org/packages/db/79/a713d4fcdf24fe3b41da67d82c8975261368942181068c7692cb7ae743f6/django_auth_style-0.11.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-23 19:17:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kitware-resonant",
    "github_project": "django-auth-style",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "django-auth-style"
}
        
Elapsed time: 0.99586s