Deployment of Django and Vue projects on CentOS 7
Server environment: centos7 + nginx + uwsgi + Python 3 + Django Database: MySQL 8.0 Project framework: Django 3.7 + Vue + ElementUI Note: This is a link to someone else's blog. The original link is https://blog.csdn.net/qq_32244493/article/details/109179782. I made some modifications according to my project and recorded my deployment process.
...
Added by naomi385 on Tue, 09 Nov 2021 08:08:09 +0200
Solving cross source resource sharing (CORS) and automatic startup uwsgi - Day 09 on Amazon Linux 2
Solving cross source resource sharing (CORS) and automatic startup uwsgi - Day 09 on Amazon Linux 2
On the back end of the application, we have solved the following problems:
Database access: MariaDB.RESTful API implementation: upload pictures using post.Back end server integration: Nginx and merge Django.
Finally, there are two problems to ...
Added by mick_otoole on Wed, 27 Oct 2021 14:28:23 +0300
python test development django-158.celery learning and use
preface
Celery is a simple, flexible and reliable distributed system, which is used to process a large number of messages and provide the tools required for operation and maintenance of such systems. It is a task queue, which focuses on real-time processing and supports task scheduling. You can use scenarios such as:
Send e-mail asynchronousl ...
Added by Agtronic on Sat, 23 Oct 2021 06:59:43 +0300
[DRF] how does django restframework use redis for token authentication
1, Foreword
restframework has its own convenient authentication and permission system: Official document (token authentication)
The token of the official document is based on the authToken in the database_ Token table
Sometimes, when too much user information needs to be used in subsequent interfaces, frequent, high and distributed qu ...
Added by smileyriley21 on Fri, 15 Oct 2021 20:51:19 +0300
0x0e -- Django -- model introduction -- 14 -- QuerySet -- execute query -- associate object
0x00 - associated object
When you define an association in the model (e.g ForeignKey, OneToOneField , or ManyToManyField ), the instance of the model will automatically obtain a set of API s to quickly access the associated objects.
Take the model at the beginning of this article as an example. An Entry object e obtains its associated ...
Added by Afrojojo on Mon, 11 Oct 2021 04:30:28 +0300
The whole process of configuring uwsgi nginx by django
Django Nginx+uwsgi installation configuration
We use python manage.py runserver to run the server. This applies only in the test environment. For officially released services, we need a stable and sustainable server, such as apache, Nginx, lighttpd, etc. This article will take Nginx as an example.
uwsgi introduction
When it comes to uwsgi, I ...
Added by anoesis on Sat, 02 Oct 2021 20:44:11 +0300
[introduction to Python tutorial] Python command line parameters
Python provides a getopt module for parsing command-line options and parameters.
$ python test.py arg1 arg2 arg3
The Python sys module provides access to any command line parameter through sys.argv. There are two main parameter variables-
sys.argv is a list of command line parameters.len(sys.argv) is the number of command line arguments.
...
Added by rami on Thu, 30 Sep 2021 00:38:39 +0300
Design and implementation of Django sub table
Demand background
The rapid growth of data leads to interface performance problems, and sub table is a more effective solution. This paper mainly discusses the following problems
Which model s need sub tables.By table.How to create tables dynamically.How to dynamically add, delete, query and modify corresponding tables.How to handle ForeignKe ...
Added by reapfyre on Tue, 28 Sep 2021 05:42:41 +0300
Django Muke network production
Every bady, have a look, have a look!
Finally, we have reached the most exciting link. From today on, we will learn django login and registration. Are you very excited (dog) before starting today's notes, we still need to know some basic concepts.
The first one: django is how to render web pagesSecond: what is CBV and what is FBVThird: what i ...
Added by Hyperjase on Thu, 23 Sep 2021 17:13:24 +0300
Automatic test platform building series (13) -- model in Django framework and user login and registration (Part 2)
Return to show.html
This page has a delete button. What I want to achieve is that I can click the delete button to call the delete function, execute the delete action, then delete the corresponding information in the database and submit the form The deletion of the show page is for the users of the current page To prevent accidental delet ...
Added by pnoeric on Sat, 18 Sep 2021 13:12:12 +0300