django-dedal

Fast CRUD builder.


Keywords
django-dedal, crud, django, hacktoberfest
License
BSD-3-Clause
Install
pip install django-dedal==1.0.1

Documentation

django-dedal

https://img.shields.io/pypi/v/django-dedal.svg?style=flat-square https://img.shields.io/pypi/pyversions/django-dedal.svg?style=flat-square https://img.shields.io/travis/ar4s/django-dedal.svg?style=flat-square https://img.shields.io/coveralls/ar4s/django-dedal.svg?style=flat-square

Fast CRUD builder.

Documentation

The full documentation is at https://django-dedal.readthedocs.org.

Demo

Example project is available on http://django-dedal.herokuapp.com/.

Quickstart

Install django-dedal:

pip install django-dedal

Then use it in a Django project simple add dedal and bootstrapform (if you want use bootstrap) to INSTALLED_APPS:

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    ...
    'dedal',
    'bootstrapform',
)

After this decorate your model by @crud:

from django.db import models

from dedal.decorators import crud


@crud
class Post(models.Model):
    title = models.CharField(max_length=50)
    body = models.TextField()
    comments = models.ManyToManyField('Comment', blank=True)

    def __str__(self):
        return '{}'.format(self.title)

That's all!

TODO

  • select related