(Turn) Chapter 1 of Django Learning: Introduction to Django


Django: Python programming web framework

If you go to djangoproject.com you will find the following explanation of Django:
"Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design."
Let's expand

Django is an advanced web framework
Advanced web framework takes the pain out of building dynamic web sites, it abstracts common web development problems and provides shortcuts to frequent programming tasks


A good web framework has the following concerns:
Provides URL
mapping Easily displays, validates and redisplays HTML forms
Converts user submissions into easily manipulated data structures Separating content and display
through a templating system
Ease of integration with persistence layers
Higher Django has all these features Django is written in Python, which is an elegant, concise, high-level programming language If you use
Django to develop your site, you will use Django libraries to write Python code


Django provides rapid development.
Django's philosophy is to do everything possible to speed up development.
Using Django to develop a site takes hours, not days, weeks, and years.
This is largely thanks to Python:
Python is an interpreted language, No need to compile code, you can see the result immediately in the browser
Python is dynamically typed, you don't have to declare variable types
Python syntax is concise and expressive, less code to accomplish the same thing, one line of Python code is usually equal to 10 lines Java code, less code leads to fewer bugs
Python provides excellent introspection and metaprogramming capabilities to inspect objects and add behavior at runtime

Django brings clean and efficient design
Django maintains a clean design rigorously, and all its code lets you develop web applications that follow best
practices . The philosophy here is: Django makes it easy for you to do the "right" things.
Django provides loose coupling Architecture, its programming philosophy is that different program fragments are interchangeable and communicate with each other through a clean, concise API
Django follows the MVC architecture

 

Why Django was developed
Django originated from real-world problems and solutions, it wasn't made to sell to developers to win the market, or to do schoolwork in someone's page time
it was made for the industrial Web Django , built by development teams to solve everyday problems,
started in 2003, in a small Kansas town called Lawrence, a web development newspaper, and the web edition was World Online
In the fall of 2003, two World Online developers, Adrian Holovaty and Simon Willison plans to create the Django framework

Who uses Django
World Online for all sites
http://www.ljworld.com
http://www.lawrence.com
http://www.6newslawrence.com
http://www.visitlawrence.com
http://www. lawrencechamber.com
http://www2.kusports.com/stats
http://projects.washingtonpost.com/congress
http://projects.washingtonpost.com/fallen
Django's updated list of sites:
http://code.djangoproject. com/wiki/DjangoPoweredSites

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325463694&siteId=291194637