Skip to main content

Engine to create database applications based on Django and the IBM Carbon Design System

Project description

Important

This repo is in alpha-stage and highly experimental. We will not keep any backwards-compatability during the next few months. We work on improving stability as well as adding documentation and tests.

TODO before going to beta

BREAD Engine

This package provides functionality to create django database applications in a quick and customizable way.

Example

myapp/models.py

from django.db import models

class Book(models.Model):
    title = models.CharField(max_length=255)
    authors = models.ManyToManyField(Author)
    publisher = models.ForeignKey(Publisher)
    publication_date = models.DateField()

    der __str__(self):
        return self.title

class Publisher(models.Model):
    name = models.CharField(max_length=255)

myapp/bread.py

from bread.admin import BreadAdmin, register

@register
class Book(BreadAdmin):
    model = models.Book

@register
class Publisher(BreadAdmin):
    model = models.Publisher

Installation

python3 -m venv .venv
. .venv/bin/activate
pip install bread
django-admin startproject --template .venv/lib/python3.7/site-packages/bread/resources/project_template.tar.gz myproject .
./manage.py migrate

Limitions

Many...

Necessary tools for certain multimedia features (thumbnails etc)

  • ffmpeg
  • libreoffice
  • inkscape
  • poppler-utils

(install with apt and flag --no-install-recommends)

Project details


Release history Release notifications | RSS feed

This version

0.1.2

Download files

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

Source Distribution

basx-bread-0.1.2.tar.gz (45.8 kB view hashes)

Uploaded Source

Supported by

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