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. For Django: 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)
    

    For nanodjango: it will automatically add itself to INSTALLED_APPS; you can configure it using the Django constructor::

    app = Django(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.2.tar.gz (11.1 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.2-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_style-0.1.2.tar.gz
  • Upload date:
  • Size: 11.1 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.2.tar.gz
Algorithm Hash digest
SHA256 e3ee45b9dff0f2a0411aa0ee531cc991a33402db491481797a49d9a22e3d7fa0
MD5 02bae619da3752502f1cd5c57ad40f62
BLAKE2b-256 cf3b3290b780ad87c08e00500cbb86b2838edcf70ef7aadf4ea0adbb437cb6fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_style-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: django_style-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a152eec0312bec78e757e66704dfba0b55bbb2151f29a52b14dc3a16bdf77b1
MD5 53fa511da6c70a5f5c14c0d720c1470a
BLAKE2b-256 6366b3e7282dab87e9f09d464725f6dd0c6107bbe0dd6d6d0ae1632759e7a9a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_style-0.1.2-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