Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Django and Html?

Tags:

html

django

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

like image 550
user3037128 Avatar asked Feb 05 '14 16:02

user3037128


1 Answers

HTML is a language used to make Web pages.

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.

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.

Django is a tool to generate Web pages

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.

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).

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

  1. HTML : you can make static web sites with it
  2. CSS : you make you web site prettier with advanced layouts
  3. Python (the language used in Django) : you can automate things with it
  4. Django : you can automatically create web pages with it
  5. Javascript : make your web pages more interactive

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.

like image 137
e-satis Avatar answered Sep 18 '22 16:09

e-satis