Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ar4s/django-dedal
Fast CRUD implemetation for Django.
https://github.com/ar4s/django-dedal
crud django hacktoberfest
Last synced: about 1 month ago
JSON representation
Fast CRUD implemetation for Django.
- Host: GitHub
- URL: https://github.com/ar4s/django-dedal
- Owner: ar4s
- License: other
- Created: 2015-05-09T17:49:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-01-16T13:28:25.000Z (almost 3 years ago)
- Last Synced: 2024-11-19T11:08:38.174Z (about 1 month ago)
- Topics: crud, django, hacktoberfest
- Language: Python
- Homepage:
- Size: 342 KB
- Stars: 14
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
=============================
django-dedal
=============================.. image:: https://img.shields.io/pypi/v/django-dedal.svg?style=flat-square
:target: https://pypi.python.org/pypi/django-dedal.. image:: https://img.shields.io/pypi/pyversions/django-dedal.svg?style=flat-square
:target: https://pypi.python.org/pypi/django-dedal.. image:: https://img.shields.io/travis/ar4s/django-dedal.svg?style=flat-square
:target: https://travis-ci.org/ar4s/django-dedal.. image:: https://img.shields.io/coveralls/ar4s/django-dedal.svg?style=flat-square
:target: https://coveralls.io/r/ar4s/django-dedal?branch=masterFast 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',
)Add a new pattern to ``urls.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 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