Fast CRUD builder.
Project description
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.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.0.tar.gz
(142.7 kB
view details)
File details
Details for the file django-dedal-1.0.0.tar.gz
.
File metadata
- Download URL: django-dedal-1.0.0.tar.gz
- Upload date:
- Size: 142.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40947198effd06125164904f9a30b580f732b690624461a86691e547834de335 |
|
MD5 | fb9cb7dabd50f040136545538bf20e5b |
|
BLAKE2b-256 | e4fb8d0200c44d003d3ee4b3e2746967b21bbbd51688b7a7ef255e672302c96d |