Skip to main content

Basic tasteful designs for your Django project

Project description

Django Style

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, 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)
    
  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.0.tar.gz (4.6 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.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_style-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for django_style-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9332d3dd09bf0b262ee6cc09189b19aa03e9607ec98d7bdbba74f0e621bebcf2
MD5 87eb8b550fd6086a840c165671211f58
BLAKE2b-256 35f441a62f42360fb825895cb21e2da8c7ecadf264a8867eab862a36ccb9a2ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_style-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for django_style-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea0d82b2373cbd97c6e7caf8861d2224d96a380ea55e4055b4aac50234ad7b7f
MD5 8a4b1ea53989200eee10a2e82369e0e4
BLAKE2b-256 e703de828c0f171b2a58b9aecd463cb67ff0f7bb5d58dca55738f40b6e87759a

See more details on using hashes here.

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