[英]What are the best uses for the Django Admin app?
On the website, it says this: 在网站上,它说:
One of the most powerful parts of Django is the automatic admin interface.
Django最强大的部分之一是自动管理界面。 It reads metadata in your model to provide a powerful and production-ready interface that content producers can immediately use to start adding content to the site.
它读取模型中的元数据,以提供功能强大且可用于生产的界面,内容生产者可以立即使用该界面开始向网站添加内容。 In this document, we discuss how to activate, use and customize Django's admin interface.admin interface.
在本文档中,我们讨论如何激活,使用和自定义Django的admin interface.admin界面。
So what? 所以呢? I still don't understand what the Admin interface is used for.
我仍然不了解管理界面的用途。 Is it like a PHPMYADMIN?
像PHPMYADMIN吗? Why would I ever need this?
为什么我会需要这个?
Let's say you create a model called Entry. 假设您创建了一个称为Entry的模型。 IE an extremely simple blog.
IE浏览器是一个非常简单的博客。 You write a view to show all the entries on the front page.
您编写一个视图以显示首页上的所有条目。 Now how do you put those entries on the webpage?
现在,您如何将这些条目放在网页上? How do you edit them?
您如何编辑它们?
Enter the admin. 输入管理员。 You register your model with the admin, create a superuser and log in to your running webapp.
您可以通过管理员注册模型,创建超级用户并登录到正在运行的Webapp。 It's there, with a fully functional interface for creating the entries.
它在那里,具有用于创建条目的功能齐全的界面。
Some of the uses I can think of - 我能想到的一些用途-
Think of the power this gives in a big organization where everyone need not know programming. 想想这对于每个人都不需要了解编程的大型组织所赋予的力量。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.