Skip to main content

Reusable bricks for Django templates

Project description

django-brick-astley

Reusable bricks to be used in Django templates.

Installation

pip install django-brick-astley

Usage

Add brickastley to your INSTALLED_APPS:

INSTALLED_APPS = [
    # ...
    'brickastley',
    # ...
]

Example Project

This repository includes a Django demo project in the example/ directory. To run it:

cd example
python -m venv .venv
source .venv/bin/activate
pip install -e ..
pip install Django
python manage.py migrate
python manage.py runserver

Visit http://127.0.0.1:8000/ to see the example in action.

Development

Clone the repository:

git clone https://github.com/philippbosch/django-brick-astley.git
cd django-brick-astley

Create and activate a virtual environment:

# Create virtual environment
python -m venv .venv

# Activate virtual environment
source .venv/bin/activate

Install in development mode with dev dependencies:

pip install -e ".[dev]"

Run tests:

pytest

License

MIT

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_brick_astley-0.1.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

django_brick_astley-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_brick_astley-0.1.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for django_brick_astley-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4ef9210ca0e0299a96387a4617682e0b1a7937a231ace9250ff558a45fdc6577
MD5 1a568608a553bfcfbc70ca7756382f98
BLAKE2b-256 d4bc8405014ad159e5ba69b338336c94670d03a4234c1e2bf888451edf7b35b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_brick_astley-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebcbefb97cdadfd413126b97d9b4c61657800c8a3130d808d799ec43bf32dff1
MD5 4802de4396ae20fbcda2e6918b35797d
BLAKE2b-256 48e293368fd769a21d125f5731bd63346a9cf72f7afc54b4de081b600a1be3f5

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