May 14, 2021 08:00 0 Comment Django
Introduction to the Django tutorial, Introduction to the Django tutorial, Who is fit to read this tutorial?, You need to know before you take this tutorial, Introduction to the Django tutorial, Python's WEB framework includes Django, Tornado, Flask, django is the most representative of the heavyweights, it
May 14, 2021 08:00 0 Comment Django
About Django, About Django, Django is a free open source Web framework developed with Python that can be used to quickly build high-performance, elegant websites!,
May 14, 2021 08:00 0 Comment Django
Django installation, Django installation, Install Django under Window, Django installation, Before you can install Django, the system needs to have Python's development environment installed., Install Django under Window,
May 14, 2021 08:00 0 Comment Django
Django creates the first project, Django creates the first project, Django creates the first project, In this chapter we'll show you how to create a project using Django., Use django-admin.py to create a project named
May 14, 2021 08:00 0 Comment Django
Django模板 简介, Django模板 简介, The use of template files, The order in which the template files are loaded, The template comment, The inheritance of the template, Django模板, 简介, In the Django framework, templates are tools that help developers quickly build pages that are presented to users. F, or writing html co
May 14, 2021 08:00 0 Comment Django
Brief introduction, Brief introduction, A quick example, Define the model, The model field class table, Field options, The association, Additional field for many-to-many relationships: throuth, Brief introduction, The model is the only defined source of information about the data. I, t contains the basic fields and behaviors to store the data
May 14, 2021 08:00 0 Comment Django
Brief introduction, Brief introduction, Django's role in the form, Form in Django, The form of the build, More about the Django Form class, Work with the form template, Brief introduction, Unless you plan to set up a content-only website and application and do not accept visitor input, you will need to understand and
May 14, 2021 09:00 0 Comment Django
Overview, Overview, Django is how to handle a request, Example, The path converter, Register a custom path converter, Use regular expressions, What URLconf searched for, Specify the default value for the view parameters, Performance, In the syntax urlpatterns variable, Error handling, Includes other URLconf, Pass additional options to view the function, Reverse resolution of the URL, Name the URL mode, The URL namespace, URL scheduling, Clean, elegant URL solutions are important details in high-quality Web applications., Django allows you to design URLs as needed witho
May 14, 2021 09:00 0 Comment Django
Basic examples, Basic examples, Usage in URLconf, Subsyscize a generic view, Class-based views, The view is callable, it accepts the request and returns a response. N, ot only can this be a function, but Django provides example
May 14, 2021 09:00 0 Comment Django
Introduction to class-based views, Introduction to class-based views, Common view, class-based views, and class-based generic views of relationships and history, Use class-based comments, Use blending, Use class-based views to work with forms, Decorative class-based views, Introduction to class-based views, Class-based views provide an alternative way to implement views as Python objects rather than functions., They are
May 14, 2021 09:00 0 Comment Django
Extend the universal view, Extend the universal view, A common view of the object, A common class-based view is built in, Writing Web applications can be monotonous because we repeat certain patterns over and over again., Django trie
May 14, 2021 09:00 0 Comment Django
Basic form, Basic form, The form of the model, Model and request.user, Example of AJAX, Form class-based opinion processing, Form processing typically has three paths:, Initial GET (blank or pre-filled), POST contains invalid data (usuall
May 14, 2021 09:00 0 Comment Django
Context and template replies, Context and template replies, Establish a generic class-based view of Django, Mix in with Django's class-based view, Avoid anything more complicated, Use mixins in class-based views, Warning:, This is an advanced topic., Before exploring these techniques, it is recommended that, you have some unders
May 14, 2021 09:00 0 Comment Django
Brief introduction, Brief introduction, The application object, Configure the settings module, Apply WSGI middleware, Install Gunicorn, Prerequisite: uWSGI, Basic configuration, Use mod_wsgi daemon mode, The service file, Provide management files, Authentication of the Django user database from Apache, Use authentication to mod_wsgi, Brief introduction, Django's primary deployment platform, is WSGI,, which is the Python standard for Web servers and applications., Django's startproj
May 14, 2021 09:00 0 Comment Django
Use ASGI for deployment, Use ASGI for deployment, The application object, Configure the settings module, Apply ASGI middleware, Install Daphne, Run Django in Daphne, Install Ucicorn, Run Django in Ucicorn, Use ASGI for deployment, In addition to WSGI, Django supports deployment on ASGI, an emerging Python standard for asynchronous Web servers and applica