(一)安裝html
Django安裝:能夠到官網下載,使用新版本是趨勢,(1.8如下和1.8 以上,區別較大)可是參考資料少 官網:https://www.djangoproject.com/python
跟Python 第三方庫安裝相似sql
安裝可參考:http://jingyan.baidu.com/article/466506580e7d29f549e5f8b6.htmldjango
依次將安裝文件解壓縮到Python安裝路徑下的…….\Python\Lib\site-packages 中,在命令行中進入解壓縮後的文件夾中:執行命令 python setup.py install便可。fetch
Pymssql安裝:在第三庫上面下載whl文件http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql命令行
(二)實例htm
pymssql鏈接示例:blog
import pymssql
conn = pymssql.connect(host='', user='', password='', database='')
cur = conn.cursor()
cur.execute('SELECT TOP 100 * FROM [dbo].[ACCOUT]')
row = cur.fetchone()
print (row)
cur.close()
conn.close()ci
Django 靜態頁面開發實例:開發
http://www.open-open.com/solution/view/1435818796310/