It is everyone's responsibility to protect the epidemic. I made an epidemic data report with Django to see if you are suitable to go out today

Django is a Python web framework[ ˈ d ʒ æ ŋɡ o] It is called "Ginger dog" in Chinese. Why learn framework? In fact, we can write a web site from 0 to 1 in Python code, but in that case, we need to write the underlying code such as network service, database reading and writing. The role of the framework is to build these underly ...

Posted by gkwhitworth on Wed, 10 Nov 2021 12:43:13 -0800

Django - implement paging

Django - implement paging View core code # Get all articles post = Post.objects.all() # Gets the value of p, which defaults to 1 p = request.GET.get('p', 1) # The first parameter is a required parameter, which represents the data to be paged. The parameter value can be list, tuple or ORM query data object. # The second parameter is a required ...

Posted by d~l on Tue, 09 Nov 2021 22:14:25 -0800

Django's model foreign key

Foreign keys and table relationships Foreign key: In MySQL, there are two types of table engines: InnoDB and myisam. If the InnoDB engine is used, foreign key constraints are supported. The existence of foreign keys makes the ORM framework extremely powerful when dealing with table relationships. So let's first introduce the use of foreign keys ...

Posted by TheUkSniper on Mon, 08 Nov 2021 18:54:44 -0800

Django module learning - module language

Django module engine supports Django module language (DTL). DTL contains syntax such as variables, comments, filters, tags, module inheritance and HTML escape. This paper introduces the following six module languages 1. Variable 2. Notes 3. Filter 4. Labels: include 5. Label: for 6. Label: in 1. Variable DTL represents variables in ...

Posted by jtp51 on Thu, 04 Nov 2021 21:16:04 -0700

Django realizes Alipay payment (sandbox environment)

1. Create application and sandbox environment Sandbox application: https://openhome.alipay.com/platform/appDaily.htm?tab=info Code scanning registration Sandbox account number: https://openhome.alipay.com/platform/appDaily.htm?tab=account The quota can be modified 2. Alipay development documentation Document home page: https://openhome ...

Posted by EnDee321 on Sun, 31 Oct 2021 19:42:02 -0700

Django learning - 3.Django's view layer

Project Name: mydemo2 Python version: 3.7.0 Django version: 3.2.0 Introduction to Django's View The View in Django framework is a logical program used to process user requests and return responses.In short, a View is a Python function or method that accepts a web request and returns a Web response.No matter what logic the view itself co ...

Posted by akano on Sun, 24 Oct 2021 02:22:35 -0700

python test development django-159.Celery asynchronous and RabbitMQ environment construction

preface Celery is a Python task queue system used to handle work task assignments across threads or network nodes. It makes asynchronous task management easy. Your application only needs to push messages to agents like RabbitMQ, and the Celery worker will pop them up and schedule tasks to execute. Celery Five roles of celery Task s are task ...

Posted by sargus on Fri, 22 Oct 2021 21:04:00 -0700

Graduation project - Title: library management system based on Django

1 Preface Hi, everyone, this is senior student Dan Cheng. Today I'd like to introduce you to a python web project Library management system based on Django You can use it for graduation design 2 background significance According to the survey of book sales stores, with the continuous growth of sales scale, the variety and quantity of b ...

Posted by jackdcrack on Tue, 19 Oct 2021 14:23:50 -0700

Detailed deployment of python+Django2.0+windows iis project

1, Server directory description Project deployment home directory:E:\innovation Python3.6.8 Installation directory:D:\Program Files(x86)\Python\Python36 1,back-end API service Code and storage Code directory: E:\innovation\backend ldap to configure: E:\innovation\backend\innovation\ldap_settings.py Configuration items such as databas ...

Posted by jungalist on Fri, 15 Oct 2021 14:39:02 -0700

Deploy my website to the container - it solves the pain point of every website migration

Deploy my website into the container - solves the pain point of each website migration 1. Requirements Ultimately, money is still insufficient, which leads me to often change servers to participate in new user discounts. In the first year, the server price is still very affordable, but this requires me to constantly migrate the website ...

Posted by creative on Mon, 04 Oct 2021 14:02:28 -0700