安装extension:
pip install flask-sqlalchemy
pip install flask-login
......
分类:
编程语言 时间:
2016-06-12 03:29:47
阅读次数:
323
# py1.py# -*- coding: utf-8 -*- import sqlalchemy import tushare import pandas import socket import struct class Mysql0: def __init__(self, user0='tes... ...
分类:
数据库 时间:
2016-06-09 17:11:11
阅读次数:
271
# -*- coding: utf-8 -*- import sqlalchemy import tushare import pandas ######################################################################## class ... ...
分类:
其他好文 时间:
2016-06-03 06:24:35
阅读次数:
165
f1.py # -*- coding: utf-8 -*- import socket import struct import sqlalchemy import pandas ############################################################... ...
分类:
编程语言 时间:
2016-06-02 23:40:40
阅读次数:
301
import struct import sqlalchemy import pandas import matplotlib.pyplot as Plot from matplotlib.finance import candlestick_ohlc as Drawk Engine = sqlal... ...
分类:
编程语言 时间:
2016-06-02 21:45:37
阅读次数:
228
f1.py # -*- coding: utf-8 -*- import socket import struct import sqlalchemy import pandas ############################################################... ...
分类:
编程语言 时间:
2016-06-02 06:07:31
阅读次数:
600
1. f1.py # -*- coding: utf-8 -*- import socket import struct import sqlalchemy import pandas #########################################################... ...
分类:
数据库 时间:
2016-05-29 06:26:18
阅读次数:
298
# -*- coding: utf-8 -*- """ 统计一段时期内股票的涨幅情况 """ '''导入模块''' import os import sqlalchemy import pandas '''清屏''' cls=os.system('cls') '''连接数据库''' engine =... ...
分类:
其他好文 时间:
2016-05-27 01:59:28
阅读次数:
442
1. 使用 flask-SQLAlchemy 扩展 2. 使用原生 SQLAlchemy 区别 ...
分类:
数据库 时间:
2016-05-26 07:32:37
阅读次数:
218
把sql-alchemy在init.py里的SQLALCHEMY_TRACK_MODIFICATIONS,797行左右改为True就行了app=Flask(__name__)
app.config.from_object(‘config‘)app.config.setdefault(‘SQLALCHEMY_TRACK_MODIFICATIONS‘,True)db=SQLAlchemy(app)
lm=LoginManager()
lm.init_app(app)
分类:
Web程序 时间:
2016-05-23 19:35:30
阅读次数:
444