Django Admin应用程式或自行滚动? [英] Django Admin app or roll my own?

查看:96
本文介绍了Django Admin应用程式或自行滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用Django进行个人项目。

I'm just starting to use Django for a personal project.

使用内置的管理应用程序与整合管理功能有什么优缺点?进入应用程序本身(通过检查request.user.is_staff)?

What are the pros and cons of using the built-in Admin application versus integrating my administrative functions into the app itself (by checking request.user.is_staff)?

这是一个社区维基,因为它可以被认为是民意调查。

This is a community wiki because it could be considered a poll.

推荐答案

这真的取决于项目我猜。虽然您可以在管理员中执行所有操作,但当您的应用程序变得更加复杂时,管理员也将变得更加复杂。如果你想让你的应用程序真的很容易管理,你想要控制每一个细节,这是不可能的管理员应用程序。

It really depends on the project I guess. While you can do everything in the admin, when your app gets more complex using the admin gets more complex too. And if you want to make your app really easy to manage you want control over every little detail, which is not really possible with the admin app.

我想你应该看到它如下所示:

I guess you should see it like this:

使用django admin:节省时间写它,失去时间使用它。

滚动自己的管理员:失去时间写节省时间。

Using django admin: save time writing it, lose time using it.
Rolling your own admin: lose time writing it, save time using it.

这篇关于Django Admin应用程式或自行滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆