码迷,mamicode.com
首页 > 其他好文 > 详细

django-scaffold简单脚手架

时间:2015-04-27 09:50:27      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:django   scaffold   

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.py file 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-scaffold简单脚手架

标签:django   scaffold   

原文地址:http://blog.csdn.net/tmpbook/article/details/45294153

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!