Detailed Intermediate in Django 2.2

Middleware is a hook framework used by Django to process requests and responses. It is a lightweight, low-level "plug-in" system for global control of Django input or output, which can be understood as a built-in app or small framework. In the django.core.handlers.base module, how to access the middleware is defined, which is also one ...

Posted on Fri, 16 Aug 2019 06:20:29 -0700 by pranav_kavi

Shopping carts for DJANGO Shop Projects and some REDIS commands in PYTHON

Recently, a shopping mall project was built with the django restframe framework. There is a business logic about shopping carts. The information about shopping carts stored in cookie s and redis is recorded here. Add delete change check four logic, f ...

Posted on Thu, 15 Aug 2019 00:01:05 -0700 by hhheng

Python Advanced-Django Framework-04 Template

Links to the original text: https://www.douban.com/note/622472794/?type=like Template As a Web framework, Django provides templates for writing html code. It can also embed template code to complete page development faster and more conv ...

Posted on Tue, 13 Aug 2019 02:32:00 -0700 by Jamesm

django learning notes day2

Articles Catalogue Admin Site Management Configuring Admin applications Managing data tables Associated objects Example of Boolean Value Display Problem Execution button position Register with Decorator Admin Site Management Summary: Content Publishing: Responsible for adding, modifying and d ...

Posted on Wed, 31 Jul 2019 01:45:55 -0700 by 8mycsh

asyncio concurrent programming

Catalog asyncio concurrent programming event loop Basic use Get the return value of the protocol Callback wait and gather Principle of task cancellation and subroutine invocation task cancelled Subcoincidence Other methods call_soon call_later ...

Posted on Sun, 28 Jul 2019 01:47:28 -0700 by mfalomir

Django-views view

1.HttpResponce function HttpResponce(content,content_type=None,status=None,charset=None,*args,**kwargs) Content: The content returned to the view function content_type: The type returned to the view function text/html HTML text text/plain plain text text/css text/javascript Application/xml XML text app ...

Posted on Thu, 25 Jul 2019 00:44:32 -0700 by dreamkiller23

Trivial Presentation Error Decision for Building Aqours Online Judge

It started in the first semester of sophomore year. There was a course called "Website Construction and Management". Because I am interested in the Web and like the style of Python language, I learned Django while learning PHP taught by my teacher. Just in the first semester of my freshman year, I learned the algorithm. I was interest ...

Posted on Wed, 24 Jul 2019 21:45:54 -0700 by AliasZero

Django Develops Personal Blog Project-Blog Database Design

Welcome to my blog: Tribal Cabinet of Alpaca Django operates the database through the Model. Whether your database type is MySql or Sqlite, Django automatically generates the corresponding database type of SQL statements for you, so you don't need to pay attention to the SQL statements and types, and Dj ...

Posted on Tue, 23 Jul 2019 18:15:56 -0700 by allspiritseve

7. Multi-table operation of Django's orm

Multi-table operation Three relationships: one-to-one, one-to-many, many-to-many 1. Data preparation and table model creation Configure settings to connect to the database # settings Change Configuration DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'orm03', 'HOST':'127.0.0.1', 'PORT':3306, 'USER':'root', 'PASSWORD' ...

Posted on Tue, 23 Jul 2019 06:48:15 -0700 by wata

Day61 (Routing System, Function View, Django ORM Preliminary)

1.1 Pseudo-static Pseudo-static is relative to static files, such as https://www.cnblogs.com/hesujian/p/11165818.html We call it pseudo-static, because it's not actually html static pages, it's just masquerading as html static pages. The benefits of pseudo-static: 1. Beautiful (the traditional question mark splicing looks messy) 2. Seo (Se ...

Posted on Sun, 21 Jul 2019 00:48:36 -0700 by dahwan