djang==1.11.2 # 1.8, 1.9, 1.10No problem
celery-with-redis==3.0 # redis needs to be used as an intermediary service (Broker)
celery==3.1.25 # Installing the above will install automatically
django-celery==3.2.2 # Cellery plug-in, to achieve timed task ...
Posted on Sun, 03 May 2020 23:20:52 -0700 by scheols
Django uses Celery initially
1. Selection of Celery mode
Here is the middleman of Celery. I use Redis. You can also use Django itself and mongodb. The middleman of Celery can be understood as the data support during the execution of Celery. Save queue records, execution records, and so on. To install Redis, refer to the installation process of ...
Posted on Wed, 25 Dec 2019 12:42:23 -0800 by henryhund
When the website uses redis cache, the expiration time of the cache will be involved, and the content in the redis database will disappear. At this time, the user operation will be slower, so a method should be adopted to make the redis database automatically update the cache content when the cache is just about to expire. This method is to use ...
Posted on Sun, 22 Dec 2019 15:23:35 -0800 by lazzerous
Last article The installation and basic usage of cellery and RabbitMQ have been described in.
This article will show you how to use cellery from an engineering point of view.
1. Configure and start RabbitMQ
Please refer to Real combat record of cellery + rabbitmq.
2. Install and use cellery
2.1 create a virtual environmen ...
Posted on Sun, 24 Nov 2019 07:20:48 -0800 by puckeye
Use redis+celery (using Ali Source or optionally not)pip install -i https://mirrors.aliyun.com/pypi/simple/ -U "celery[redis]"
Modify Django's settings configuration file
Add celery file
Add a folder to the app peer directory, for example: service_celery
Add celery.py file to ...
Posted on Tue, 08 Oct 2019 00:51:29 -0700 by petersen313
The last two nights of an online system crash, after opening the online error log immediately, only a meaningless stack of program calls (traceback) output was obtained, and the team members were caught in a lengthy and confusing problem-solving process.Fortunately, the problem was resolved, but I have been wondering why the call sta ...
Posted on Sat, 21 Sep 2019 10:04:14 -0700 by will
Open stmp service
Take 163 mailbox for example, Click to set stmp inside
Open Client Authorization Password
As shown above, because I'm already on, the page above appears.
In this way, the mailbox is ready.
Send mail using Django built-in functions
1. Add the following configuration to the settings file
Posted on Sun, 15 Sep 2019 09:44:49 -0700 by robviperx
WebSocket - Open the Gate to the New World
What is WebSocket?
WebSocket is a protocol for full-duplex communication over a single TCP connection. WebSocket allows the server to actively push data to the client. In WebSocket protocol, the client browser and server can create a persistent connection with only one handshake, and carry out bidire ...
Posted on Thu, 16 May 2019 15:39:14 -0700 by pdmiller
I hope that through the study of these two articles, I can have a deeper understanding of Channels and use them with ease and ease.
Pass the previous article "Django Implementing WebSocket with Channels -- Part I" Learning should have a clear understanding of Channels'concepts and allow you to successfully integrate the Channels fra ...
Posted on Fri, 10 May 2019 13:52:44 -0700 by BigTime
Enter the virtual environment (different virtual environments are created, different ways of entry)
pip install celery==3.1.25 (take celery installation as an example, other installation methods are the same)
windows 10 (windows is not supported after ...
Posted on Tue, 29 Jan 2019 16:45:14 -0800 by ven0mblade