Multiplayer blog development project - Deployment
One backend code deployment
1 Django packaging
1 setup.py file creation
The details are as follows
#!/usr/bin/poython3.6
#conding:utf-8
from distutils.core import setup
import glob
setup(name='blog',
version='1.0',
description='demo blog',
author='zhang',
author_email='18829272841@163.com',
url='https://www. ...
Posted by gfoot on Wed, 30 Oct 2019 03:14:09 -0700
Setting up proxy for brew/git/pip
1. How to set up HTTP/HTTPS proxy correctly
When brew is set to pass socks5 proxy, it will be found that pip does not support socks5 in fact. It can only pass http/https.
Get port first
Click on the status bar of the small rocket
HTTP Proxy Preference
Get the port number of HTTP (I am 1087)
Add the following to the. bash? Profile /. zshrc (zs ...
Posted by mimilaw123 on Fri, 25 Oct 2019 11:24:27 -0700
Requests: HTTP library designed for human
brief introduction
Requests is an elegant and easy-to-use HTTP library, built specifically for humans
This article focuses on requests 2.x
The authors of requests are Kenneth Reitz , to focus on requests3 Development, Kenneth Reitz has requests2 Hand over to PSF (Python Software Foundation) Administration
PyPI address: https://pypi.org/project ...
Posted by Chrysanthus on Wed, 23 Oct 2019 14:05:41 -0700
python Reading of LMDB Files
This paper introduces python's method of reading and writing LMDB files in detail.
The full name of LMDB is Lightning Memory-Mapped Database (lightning-fast memory mapping database). Its file structure is simple, including a data file and a lock file:
LMDB files can be opened by multiple processes at th ...
Posted by ecco on Mon, 14 Oct 2019 07:23:57 -0700
python day 8: re module supplement, import module, hashlib module, string formatting, module knowledge collection, initial knowledge of requests module
Catalog
python day 8
1. re module supplement
2. import module import
3. os module
4. hashlib module
5. String format: percentile and format methods
6. Modular Knowledge Collection
7. Initial knowledge of requests module
python day 8
2019/10/11
Data from the ...
Posted by Kerry Kobashi on Fri, 11 Oct 2019 12:24:23 -0700
Django-Docker Containerized Deployment: Django-Docker Local Deployment
This chapter will build a containerized Django project locally to experience how Docker works.
preparation in advance
development environment
Although there is a Windows-based version of Docker, all aspects of compatibility are not well done (installation is more troublesome), so it is recommended that readers install their own Linux or Mac sys ...
Posted by hl_tan on Tue, 08 Oct 2019 10:02:05 -0700
[Pixhawk/PX4] Development Environment Building (Ubuntu 18.04)
This paper mainly records the building process of PX4 environment under Ubuntu 18.04. Because I installed ROS Melodic before installing PX4 environment, and gazebo was installed at the same time when installing ROS, it is impossible to determine whether the subsequent problems were caused by installing ROS first.
This paper is divided into the ...
Posted by bltesar on Tue, 08 Oct 2019 00:26:10 -0700
python ldap3 for domain validation and synchronization
There are many intranet systems in the company. If each system has an independent login account, the company leader may have an opinion. In order to solve the problem of too many accounts, the login mode can adopt domain authentication. Here we share python's domain authentication and account synchro ...
Posted by monloi on Sun, 06 Oct 2019 21:40:47 -0700
Regularized crawl product information and packaged it into.exe executable program.
This article crawls the content, enters the search key, can automatically climb the shop name, the commodity name, the price, and climb 100 pages (100 pages).
The code is as follows.
import requests
import re
# Request header
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome ...
Posted by MajusC00L on Sat, 05 Oct 2019 12:29:06 -0700
centos server on-line second django project method.
Aliyun Server Open Port 8001,9001
Create a virtual environment
virtualenv -p python3 web2
Make Virtual Environment Effective
source web2/bin/activate
Installing django and uwsgi in virtual environment
pip install django
pip install uwsgi
Create a django project
django-admin.py startproject myweb2
Modify the settins.py ...
Posted by justin.nethers on Tue, 01 Oct 2019 23:34:19 -0700