10 2016 档案
摘要:angularjs $q、$http 处理多个异步请求 在实际业务中经常需要等待几个请求完成后再进行下一步操作。但angularjs中$http不支持同步的请求。 解决方法一: $http.get('url1').success(function (d1) { $http.get('url2').s
阅读全文
摘要:利用 Django REST framework 编写 RESTful API Updateat 2015/12/3: 增加 filter 最近在玩 Django,不得不说 rest_framework 真乃一大神器,可以轻易的甚至自动化的搞定很多事情,比如: 自动生成符合 RESTful 规范的
阅读全文
摘要:python 遍历文件夹 文件 import os import os.path rootdir = “d:\data” # 指明被遍历的文件夹 for parent,dirnames,filenames in os.walk(rootdir): #三个参数:分别返回1.父目录 2.所有文件夹名字(
阅读全文
摘要:How to set up an FTP server on Ubuntu 14.04 Setting up a fully-functional and highly secure FTP server on Ubuntu is made very easy with a handful of k
阅读全文
摘要:https://uwsgi.readthedocs.io/en/latest/tutorials/Django_and_nginx.html Setting up Django and your web server with uWSGI and nginx This tutorial is aim
阅读全文
摘要:Django 部署 uwsgi + nginx + supervisor https://hacpai.com/article/1460607620615?p=1&m=0 zonghua • 6 个月前 • 浏览 1.7K • 回帖 15 Python Django uwsgi NGINX zong
阅读全文
摘要:http://kfd.me/ https://google.kfd.me/webhp?newwindow=1&safe=active http://googlebridge.com/search?q=django+docker+celery&start= EmanLee, Eman Lee's Sp
阅读全文
摘要:https://forums.docker.com/t/how-do-i-change-the-docker-image-installation-directory/1169/2 How do I change the Docker image installation directory? Op
阅读全文
摘要:Looks like your locale settings are broken or non-existent on that VM, or at least that session on that VM. One of MongoDB's dependencies (boost) will
阅读全文