I am fairly new to Django and would like to know how Django is different from html?

我是Django的新手,想知道Django与html有何不同?

1 个解决方案

#1


9

HTML is a language used to make Web pages.

HTML是用于制作网页的语言。

When you "go online", you in fact use a software called a Web browser, downloading a code. This code is then used to display the Web pages : the color, the text, the images and so on.

当你“上线”时,你实际上使用了一个名为Web浏览器的软件,下载了一个代码。然后,此代码用于显示网页:颜色,文本,图像等。

HTML is a part of this code. It's the code saying "this information is a title, this information is a paragraph, this is an image", etc.

HTML是此代码的一部分。这是代码说“这个信息是一个标题,这个信息是一个段落,这是一个图像”,等等。

Django is a tool to generate Web pages

Django是一个生成网页的工具

It can do more than that, but's that the basics of it. Writting HTML code by hand is very tedious, not very efficient, and limited : you can't make pages that adapts to the person who asks for it such as a user page or a search page.

它可以做更多,但它是它的基础。手动编写HTML代码非常繁琐,效率不高,而且有限:您不能制作适合要求的人的页面,例如用户页面或搜索页面。

Django is a tool that can understand what a user is asking, and create the HTML code in a fraction of a second, then send it back. When you see a Website such as Google or Amazon, they are using such a tool to display what you search for (although they don't use Django, there are many similar tools to do so).

Django是一个工具,可以理解用户的要求,并在几分之一秒内创建HTML代码,然后将其发回。当您看到Google或亚马逊等网站时,他们使用这样的工具来显示您搜索的内容(尽管他们不使用Django,但有很多类似的工具可以这样做)。

If you want to learn to make Web sites with Django, you probably want to learn things in that order :

如果您想学习使用Django制作网站,您可能希望按顺序学习:

  1. HTML : you can make static web sites with it
  2. HTML:您可以使用它制作静态网站

  3. CSS : you make you web site prettier with advanced layouts
  4. CSS:使用高级布局让您的网站更漂亮

  5. Python (the language used in Django) : you can automate things with it
  6. Python(Django中使用的语言):您可以使用它自动化

  7. Django : you can automatically create web pages with it
  8. Django:您可以使用它自动创建网页

  9. Javascript : make your web pages more interactive
  10. Javascript:让您的网页更具互动性

It's a pretty long process, so be sure that's what you need. If you just want a blog or an e-commerce web site, there are plenty already made solutions that exist and don't require to know programming.

这是一个非常漫长的过程,所以请确保这是您需要的。如果您只是想要一个博客或电子商务网站,那么已经有很多已经存在的解决方案,并且不需要了解编程。

更多相关文章

  1. 用HTML5为你的网页添加音效(兼容Firefox 3.5+, IE 6-9, Safari 3.
  2. 网页中时光轴的简单实现
  3. 光标无法定位到网页输入框
  4. 将PHP代码添加到.html文件
  5. Linux 抓取网页方式(curl+wget)
  6. 如何让你的前端代码更像HTML5(用语义元素构造html5)
  7. HTML5批量拖拽图片到网页
  8. 如何在CSS中单独定位此HTML代码?
  9. QQ、MSN、淘包旺旺、Skype常设对话的html链接代码

随机推荐

  1. 让Python在Android系统上飞一会儿
  2. Androidの自定义Spinner实现
  3. 【Android Studio使用教程4】Android Stu
  4. 修改android升级系统后启动系统,提示andro
  5. Android TextView 设置行间距字间距
  6. Android 入门前言之 --布局
  7. android selector 背景选择器的使用, butt
  8. Android Studio系列(四)Version Control II
  9. 8大你不得不知的Android调试工具
  10. android 去掉顶部状态栏