是否值得使用内置的Django管理员一个体面的大小的项目? [英] Is it worth it using the built-in Django admin for a decent sized project?

查看:151
本文介绍了是否值得使用内置的Django管理员一个体面的大小的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有使用Django太久了,但我即将开始一个非常庞大的项目。我在大型项目中使用相当新的框架(对我来说很新)总是很紧张,因为我以前被烧了。然而,我对Django很有信心,这将终于成为让我从自己的PHP框架飞跃到一个流行的Python框架的项目。 (yay!)

I haven't been using Django too long, but I'm about to start a pretty hefty-sized project. I'm always nervous using fairly new frameworks (new to me) on large projects because I've been burned before. However, I'm pretty confident in Django...this will finally be the project that makes me leap from my home-grown PHP framework to a popular Python framework. (yay!)

无论如何,我的问题是内置的Django管理员是否足够强大,足以用于一个成熟的面向客户的界面(客户端将自己使用,而不是我)。我看到它是可以自定义的,但我想知道如果可扩展性足以处理各种非标准的情况。我没有任何具体的例子,因为我还没有开始。

Anyway, my question is whether or not the built-in Django admin is robust enough to use for a fully-fledged customer-facing interface (the clients will be using it themselves, not me). I see that it's pretty customizable, but I'm wondering if extensible enough to handle various non-standard cases. I don't have any concrete examples yet since I haven't started yet.

有没有人使用Django管理员来使用非编程人员使用的一些漂亮的自定义界面?它值得吗?您是否愿意为该网站专门制作了本土化的管理界面?

Has anyone used the Django admin for some pretty customized interfaces that non-programmer users use? Was it worth it? Would you rather have just created a home-grown admin interface specifically for the site?

只是为了澄清,用户将是完全非技术性的。

Just to clarify, the users would be completely non-techy.

推荐答案

如果我理解正确,您要对所有用户使用django管理员,让他们更新网站。

如果这是真的,我想你可能会使用它与其主要目的不同的方式,你可以从 Django book (重点是我的):

If I understand it correctly, you want to use the django admin for all users, to let them update the site.
If this is true, I think you may be using it in a different way from what was its main purpose, as you can get from the Django book (emphasis is mine):


对于某类网站一个
的管理界面是基础架构的基本部分
。这是一个
基于Web的界面,限于
信任的站点管理员,
可以添加,编辑和
删除站点内容。 / p>

For a certain class of Web sites, an admin interface is an essential part of the infrastructure. This is a Web-based interface, limited to trusted site administrators, that enables the adding, editing and deletion of site content.

如果您的用户需要更新内容(比如说,添加新文章),那么可能是。 b $ b但是如果你想使用它进行任何网站交互,那么我认为用户体验不会那么好。

If your users need to update content (like, let's say, adding a new article) then it may be OK.
But if you want to use it for any site interaction, then I think the user experience will not be as good.

我认为一个非常好的例子管理员可以使用,不应该使用的是 ReviewBoard :那里,大部分用户操作由站点直接处理,然后仅使用管理员处理配置和管理。

I think a very nice example of how the admin can be used, and when it should not be used is in ReviewBoard: there, most of user actions are handled directly by the site, and only the configuration and management are then handled using the admin.

最后,这是一个可用性的问题即可。如果您认为应用程序有其他部分可以管理网站的其他部分,那么Django的管理员网站可能是一个实时的保护程序。在所有其他情况下,也许最好再投资一些时间。

In the end, it is a matter of usability. If you think that it is OK for your application to have a different section to manage addition to the site, then Django's admin site may be a real time saver. In all other cases, maybe it is better to invest some time more.

这篇关于是否值得使用内置的Django管理员一个体面的大小的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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