This document has now been incorporated into the uWSGI documentation:
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
Steps with explanations to set up a server using:
# @brief | |
# Performs file upload validation for django. The original version implemented | |
# by dokterbob had some problems with determining the correct mimetype and | |
# determining the size of the file uploaded (at least within my Django application | |
# that is). | |
# @author dokterbob | |
# @author jrosebr1 | |
import mimetypes |
This is an unofficial manual for the couchdb
Python module I wish I had had.
pip install couchdb
import socket | |
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # UDP | |
client.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) | |
client.bind(("", 37020)) | |
while True: | |
data, addr = client.recvfrom(1024) | |
print("received message: %s"%data) |
{ | |
"api-cors-header": "", | |
"authorization-plugins": [], | |
"bip": "", | |
"bridge": "", | |
"cgroup-parent": "", | |
"cluster-store": "", | |
"cluster-store-opts": {}, | |
"cluster-advertise": "", | |
"debug": true, |