Skip to main content

Fast CRUD builder.

Project description

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/codacy/3280ce639e6442ed809a817d2e20de17.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

  • pagination

  • select related

History

1.0.1 (2016-03-30)

  • refactored tests

  • fixes heroku example app

1.0.0 (2016-03-26)

  • removed urls.W002 (changed URL for list)

  • changed URL format for reverse (introduced namespace)

  • dropped support for python 2.x

0.1.0 (2015-05-09)

  • First release on PyPI.

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-dedal-1.0.2.tar.gz (145.3 kB view details)

Uploaded Source

File details

Details for the file django-dedal-1.0.2.tar.gz.

File metadata

File hashes

Hashes for django-dedal-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f69ece101480d342d31b5a79460d58c50c784f61e5caaa03a7498216b37b50fc
MD5 939647dec16b19c63d3bf761bc0f7095
BLAKE2b-256 c7f6f2f1e8e5883b389fe4b69106ac7c79875a0f203313ae1e5c91c4bb60d1cd

See more details on using hashes here.

Supported by

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