快速积垢制造者。
django-dedal的Python项目详细描述
快速积垢制造者。
文档
演示
示例项目在http://django-dedal.herokuapp.com/上可用。
快速启动
安装django dedal:
pip install django-dedal
然后在django项目中使用它,只需将dedal和bootstrapform(如果要使用bootstrap)添加到INSTALLED_APPS:
INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ... 'dedal', 'bootstrapform', )
在此之后,用@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)
就这些!
待办事项
- 选择“相关”
历史记录
1.1.0(2018-01-11)
- 添加分页
- 添加对django 2.x的支持
- 放弃对django 1.8和python 3.4的支持
- 修复ci
1.0.1(2016-03-30)
- 重构测试
- 修复Heroku示例应用程序
1.0.0(2016-03-26)
- 已删除url.w002(已更改列表的url)
- 已更改反向的URL格式(引入的命名空间)
- 放弃了对python 2.x的支持
0.1.0(2015-05-09)
- pypi上的第一个版本。