- Notifications
You must be signed in to change notification settings - Fork6
Fast CRUD implemetation for Django.
License
NotificationsYou must be signed in to change notification settings
ar4s/django-dedal
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Fast CRUD builder.
The full documentation is athttps://django-dedal.readthedocs.org.
Example project is available onhttp://django-dedal.herokuapp.com/.
Install django-dedal:
pip install django-dedal
Then use it in a Django project simple adddedal
andbootstrapform
(if you want use bootstrap) toINSTALLED_APPS
:
INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ... 'dedal', 'bootstrapform',)
Add a new pattern tourls.py
:
from dedal.site import site as dedal_site...urlpatterns = [ ... url(r"^", include(dedal_site.urls)),]
After this decorate your model by@crud
:
from django.db import modelsfrom dedal.decorators import crud@crudclass 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!
- select related
About
Fast CRUD implemetation for Django.
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published