Django deploys nginx+uwsgi+ubuntu (Linux server)

1. Project introduction In September 2023, I successfully deployed a Django project on Alibaba Cloud. The specific environment is as follows: Server: Ubuntu Server 22.04 LTS 64bit (Linux) Reverse proxy server: Nginx WEB server: uwsgi Project framework: Django (version 4.2) Project running environment: Python3 2. The relationship between nginx, uwsgi and ubuntu 1. First, the […]

Suppose the ciphertext obtained by encrypting a plaintext by affine transformation is: `edsgi ckxhu klzve qzvkx wkzuk vcuh` and it is known that the first two characters of the plaintext are `if`, decrypt the ciphertext (known plaintext attack)

Suppose the ciphertext obtained by encrypting a plaintext by affine transformation is: edsgi ckxhu klzve qzvkx wkzuk vcuh It is also known that the first two characters of the plaintext are if, Decrypt the ciphertext (known plaintext attack) Suppose we are studying a known-plaintext attack on an affine cipher. Affine ciphers are simple substitution ciphers […]

docker+mysql+flask+redis+vue3+uwsgi+docker deployment

First pull the mysql image, the mysql5.7.6 used here docker pull mysql:5.7.6 Start after the image pull is completed: docker run –name my-mysql -d -p 3306:3306 -v /usr/local/my-mysql/conf:/etc/mysql/conf.d -v /usr/local/my-mysql/ data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7.6 Use dockerfile to build python3.9.11 + uwsgi + nginx FROM python:3.9.11 # Add tags to the image LABEL version=”v1″ description=”Docker deploy […]

9. ASGI of Django3

Nine, Django3’s ASGI 9.1, Web applications and web servers Web application (Web) is an application that can complete web business logic and allow users to access it based on a web browser. It can be a function or class that implements http request and response functions, or it can be Django, Flask, sanic Such a […]

Python uWSGI installation configuration

Python uWSGI installation configuration This article mainly introduces how to deploy simple WSGI applications and common web frameworks. Taking Ubuntu/Debian as an example, first install the dependency packages: apt-get install build-essential python-dev Python installation uWSGI 1. Through pip command: pip install uwsgi 2. Download the installation script: curl http://uwsgi.it/install | bash -s default /tmp/uwsgi Install […]

Deploy Django with nginx+uwsgi under centos

Try to use centos nginx + uwsgi to deploy a previous django project. The process of solving the problem is long and arduous, but it turns out to be worthwhile. If you are deploying a Django project, I hope it can help you Prerequisites What I use: python3.6 mysql5.7 django project 3.2 First, download python […]

Python asynchronous programming|ASGI and Django (with source code)

Asynchronous Server Gateway Interface (ASGI) adheres to the WSGI unified gateway interface principle, provides a standard interface between asynchronous services, frameworks and applications, and is compatible with WSGI. 01, ASGI ASGI is a new standard redesigned based on the idea of a unified interface. You may have doubts, why not directly upgrade WSGI and create […]