Django Baker wants to help you get your projects up and running
quickly. Given one or more app names, s/he will automatically generate
views, forms, urls, admin, and templates for all of the models in the
models.py file. All files are pep-8 compliant (with exception to the
maximum line length rule, which I don't agree with).
Once you add a single urlpattern to your project's URLconf, you'll
have a working list view, detail view, create view, update view, and
delete view for each model in your app.
Optionally you may specify which models in an app to bake if you'd
rather not generate files for all of them.
试试django命令和jinja2模板。你知道吗
通过执行自定义命令,可以使用适当的内容更新文件模板集,并根据需要将其复制到相应的文件夹中。你知道吗
我还没有亲自使用它,但你可以尝试使用第三方软件包 Django baker Django Baker提供了这种功能
相关问题 更多 >
编程相关推荐