What is Django

Django is a free and open source Web application framework written in Python. A Web framework is a set of components that help developers develop Web sites faster and more easily. When you start building a Web site, you always need similar components: a way to handle user authentication (registration, login, logout), a panel to manage the site, forms, a way to upload files, and so on. Django has already done that for you.

Overview of Django overview

  1. The main purpose of Django is to develop database-driven websites quickly and easily;
  2. Django emphasizes code reuse and rapid development, and is highly extensible.
  3. Django has a number of powerful third party plugins that make it easy for multiple components to serve the framework as “plugins.”
  4. Djangos MVT mode: Model, View, Template (Djangos MVT is not fundamentally different from MVC in Web development)
  5. A heavyweight framework, Django native offers a number of functional components that make development easier and faster:

Database ORM support, templates, forms, authentication permissions, Admin site management, session mechanism, caching.

Django development enterprise q&A website project

From the actual demand analysis, to achieve the functions of today’s mainstream knowledge question and answer applications, including dynamic, article, question and answer, private message, message notification, search, personal center, to create an enterprise-level knowledge question and answer website, so as to comprehensively learn Python backend development stack. It covers Python, Django ecology, source code for generic class views, DFS/BFS/C3 linearization algorithms, composite and Observer modes, TestCase test cases, MySQL database, Redis cache, WebSocket Real-time push, Haystack+Elasticsear Ch search, application deployment and operation and maintenance, cloud computing services. Explain the whole process of enterprise project development from zero development to ali Cloud online.

  • Advanced Django Application Practices

Build the project template using Cookiecutter-Django. Common Class view (CBGV) programming, more streamlined code, higher development efficiency. Django Ecology, beyond frameworks, explores best practices for project development.

  • Database design & website optimization

MySQL database design, security and authority management, SQL optimization. Use of Redis cache. Compressor: Celery mail task queue, django-compressor static file CSS /js.

  • TestCase to ensure code quality

Each functional module has a test case written to explain two different test ideas. Test Client simulates WSGI server to send HTTP Request. The RequestFactory class simulates the Request direct test view.

  • Algorithm + design pattern integration project, better understanding

MRO for Multiple inheritance in Python, DFS for classic classes, BFS and C3 linearization for new classes, Mixin composition pattern for generic class view source, observer pattern for Signal mechanism.

  • WebSocket message push

Step-by-step explanation: Principle > Function Design > Front-end and back-end technology deployment. Integrate Channels into your Django project for real-time push of back-end messages. Deploy Django Channels using Nginx+Daphne+uWSGI+Django.

  • Docking cloud computing services, combined with tidal technology

Explain how to use two kinds of Ali Cloud products: Elastic Compute Service (ECS); Ali Cloud Relational Database Service (RDS).

Four,

Django is a Python-based Web application framework. The biggest difference between it and Python’s other Web framework, Flask, is that it has an “include everything” philosophy. The idea is that the common functionality needed to create Web applications should be included in the framework, not in a separate package. For example, authentication, URL routing, a template system, object relational mapping (ORM), and database migration are all included in the Django framework. This may seem like a loss of flexibility, but it will make you more efficient when building your website.

Django advanced practical development enterprise q&A forum project, about Django core technology practical project is such, welcome to contact the author to learn.