发布时间:2015-03-24 22:32:50
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html1,准备工作安装虚拟环境$pip install virtualenv$virtualenv uwsgi-test$cd uwsgi-test$source bin/activate安装Djangopip install Djangodjango-admin.py start.........【阅读全文】
发布时间:2015-03-18 20:58:50
https://github.com/yceruto/django-ajax1,安装django-ajax点击(此处)折叠或打开$ pip install djangoajax2,简单用法INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth',.........【阅读全文】
发布时间:2015-03-14 11:08:49
点击(此处)折叠或打开>>> from datetime import datetime>>> import time>>> import calendar as cal>>> utc_now = datetime.utcnow() #当地时间>>> now = datetime.now() #UTC时间.........【阅读全文】
发布时间:2015-03-14 10:24:58
点击(此处)折叠或打开#encoding=utf-8from datetime import date, datetimeimport time#获取当前时间d1 = datetime.today()d2 = date.today()print("d1=%s, d2=%s" %(d1, d2)).........【阅读全文】
发布时间:2015-03-08 15:12:23
PyQt可以用html标签设置字体颜色点击(此处)折叠或打开from PyQt5 import QtWidgetsimport sysapp = QtWidgets.QApplication(sys.argv)dialog = QtWidgets.QDialog()label1 = QtWidgets.QLabel()label2 = QtW.........【阅读全文】