Skip to main content

Basic tasteful designs for your Django project

Project description

Django Style

PyPI Documentation Tests Coverage

Basic tasteful designs for your Django project, with sensible defaults.

Features:

  • Themes for plain CSS, Tailwind 4, and Bootstrap 5
  • Mobile support
  • App layout for content with a complex UI
  • Basic menu support

This project won't replace a proper design, but can help make your prototypes pretty.

Pairs particularly well with nanodjango.

Example

To play with a live example, you can try the live demo, or download example.py and run with uv:

uvx --with django-style nanodjango run example.py

Quickstart

  1. Install:

    pip install django-style
    
  2. Add it to INSTALLED_APPS in your settings.py, and optionally configure it:

    INSTALLED_APPS = [
        ...
        "django_style",
    ]
    
    STYLE_THEME = "tailwind"  # or "simple" (default) or "bootstrap"
    STYLE_IS_APP = True  # enable app layout (default is False)
    

    or if using nanodjango:

    app = Django(
        EXTRA_APPS=["django_style"],
        STYLE_THEME="tailwind"
    )
    
  3. Extend base.html in your templates:

    {% extends "base.html" %}
    {% block content %}
        <p>Hello world</p>
    {% endblock %}
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_style-0.1.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_style-0.1.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file django_style-0.1.1.tar.gz.

File metadata

  • Download URL: django_style-0.1.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for django_style-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0e5d00cb8613384a5c27cae7de6ace3a01a8221cc2dd51e5d30f33a5ba841c80
MD5 ffd88a197175f63408d54dfc69a7f64e
BLAKE2b-256 a303280b551569ef407b8d5765ce793ae128b3b946b789b61c2f33b158bcf100

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_style-0.1.1.tar.gz:

Publisher: pypi.yml on radiac/django-style

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_style-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: django_style-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for django_style-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 747aaf489fd0c2e51c78728012ed1c163f581cd8dc7701f5c63e19f9210620d6
MD5 81c7be8aef7e57b1ba93748213da6b04
BLAKE2b-256 c9fffaffacdf6af7d514049b4d837f2130a6147bfd79a32be9eaf1dbb703434a

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_style-0.1.1-py3-none-any.whl:

Publisher: pypi.yml on radiac/django-style

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page