Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Fast CRUD implemetation for Django.

License

NotificationsYou must be signed in to change notification settings

ar4s/django-dedal

Repository files navigation

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

Fast CRUD builder.

Documentation

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

Demo

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

Quickstart

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!

TODO

  • select related

About

Fast CRUD implemetation for Django.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp