What is it?
This app does all the groundwork(forms.py, urls.py, templates/appname/*.html, views.py) needed to running a app which you can create, list, edit, view a ModelForm.
Usage:
- Include django-scaffold as a newly created app in your list of installed apps in
settings.py.
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django-scaffold',
...
)
- Create the
models.pyfile for your app with all the fields specified.
How to use?
Run the following command:
$ python manage.py groundwork <projectname> <appname> <modelname1> <modelname2> ..
# you can see it by using the commond below.
$ manage.py help
此应用简化了Django项目中创建、列出、编辑及查看ModelForm所需的准备工作。通过运行特定命令,可以快速生成所需的forms.py、urls.py、模板文件及views.py等组件。
676

被折叠的 条评论
为什么被折叠?



