Django framework for Python

Table of Contents 1. Web application 1. What is a web application? 2. What is a web framework? ?2. Handwritten Web Framework 3. Python mainstream web framework 4. Django framework version and download 5. Things to note 6. Basic use 1. Verify whether the download is successful 2. Commonly used operating commands (1) Create a […]

A first look at Django – custom attachment storage model

Foreword Django comes with a field named FileField for processing file uploads. However, sometimes we need more control, such as defining the file’s storage path, file name, and file type. In this article, we will explore how to customize the Django attachment storage model. Create an attachment application python manage.py startapp attachment Then, in the […]

Django+Celery framework automated scheduled task development

This chapter introduces the use of DjCelery, that is, the Django + Celery framework, to develop the scheduled task function, and implement scheduled execution, scheduling, and management of tasks such as single interface automated test scripts, business scenario interface automated test scripts, App automated test scripts, and Web automated test scripts on the Autotestplat platform. […]

Secure voting system based on blockchain and threshold password (Python+Django+Node+web3+SQLite3)

Table of contents Summary I Abstract I Chapter 1 Introduction 1 1.1 Research background and significance of the topic 1 1.2 Research status at home and abroad 3 1.3 Contents of this article 8 1.4 Structural arrangement 10 Chapter 2 Related Knowledge and Technology 11 2.1 Blockchain related knowledge 11 2.1.1 Blockchain 11 2.1.2 Ethereum […]

A first look at Django – custom user model

Foreword Custom user models are an important topic in Django applications, and it involves how to adapt the user model to your project needs and specific user authentication and authorization needs. In the following preface, I’ll cover why a custom user model is so important and its potential advantages: With the continuous development of web […]

A first look at Django – project initialization

Environment preparation Switch pypi source Run the following script to switch the pypi source to the Alibaba Cloud image to avoid network problems during the installation of the python library. #!/bin/bash # Define configuration content config_content=”[global] index-url = http://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com ” # Get the user’s home directory user_home=”$HOME” # Make sure the .pip directory […]

Django3 framework-(3)-[Using websocket]: Using channels to implement websocket functions; simplified configuration and actual usage

Overview: I have written several blog posts before about how Django uses channels to implement websocket functions. With the use and actual maintenance of the project, the relevant processing methods have been reset. Generally speaking, the front and back ends only maintain a global connection and carry data to determine specific operations. The general business […]

To have fun with Django development, you need a plug-in

Let’s get back to the topic of Python development technology from today, after all, this is what we eat. Today we will talk about a package called Django-filter that I commonly use in daily development. This package is very convenient for filtering and developing our daily Django development work. We only need to configure a […]

The django-apschedule scheduled task stops abnormally

Background In the Django project, django-apschedule is used to implement scheduled tasks. The BackgroundScheduler scheduling class is used. The scheduling is implemented by executing scheduled tasks through background threads. The tasks are all persisted to the database. During the running of the project, due to an exception in the database, the scheduled task thread terminated […]