from flask import Flaskfrom flask.ext.mail import Mail, Messagefrom threading import Threadapp = Flask(__name__)app.config.update(dict( MAIL_SERVER...
分类:
其他好文 时间:
2015-07-10 18:21:51
阅读次数:
120
databases.py
app.config[‘SQLALCHEMY_DATABASE_URI‘]=globalsSet[‘dblink‘]#默认数据库链接
app.config[‘SQLALCHEMY_BINDS‘]={‘one‘:globalsSet[‘dblink_one‘],
‘two‘:globalsSet[‘dblink_two‘]}
models.py
__tablename__=‘tname‘
__bind_key__=‘one‘问题:去重使用groupby..
分类:
数据库 时间:
2015-07-10 16:55:24
阅读次数:
326
使用Entity的时候遇到的一个错
问题出在项目的App.config中
解决:
1.configSections要写在最顶端
2. 其中的incariantName会变成incariantNodeName
这个是安装Entity的时候自动生成的,你如果记得这句话,直接换成incariantName,或者卸载EF重新安装
3.如果你项目还引用了其他安装EF的项目
...
分类:
移动开发 时间:
2015-07-10 15:24:27
阅读次数:
945
如果配置文件中包含 configSections 元素,则 configSections 元素必须是 configuration 元素的第一个子元素。将appSettings放到configSections 后,则正常。configSections中的元素必须和下面的自定义配置节一一对应。例如 下面...
分类:
移动开发 时间:
2015-07-09 21:15:27
阅读次数:
132
usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Configuration;namespaceDBTest{publicclassOpactionData{///<summary>///获取数据库连接地址,通过app.config文件来进行接收///</summary&g..
C# 对WinForm应用程序的App.config的使用及加密?? 2013-08-06 14:21:14|??分类:?Visual Studio 20?|??标签:.net??部署??配置文件??|举报|字号?订阅 ???? 下载LOFTER客户端 ? ? ? ? 我们...
分类:
移动开发 时间:
2015-07-04 08:30:36
阅读次数:
125
产生背景
删除了旧的EF实体模型,重新建的新的EF实体模型和之前建立的实体模型名称不一样。
如:BidSystem.edmx(旧),LFBidSystem.edmx(新)。
产生原因
WCF服务层的配置文件web.config及单元测试项目中的配置文件app.config中的配置节和Model层的配置文件不一致,如图所示:
解决方...
分类:
Web程序 时间:
2015-07-03 22:08:02
阅读次数:
141
APP.config配置如下:<?xmlversion="1.0"encoding="utf-8"?><configuration><connectionStrings><addname="strCon"connectionString="server=127.0.0.1;userid=root;password=cms1005;database=uestc_infosoft;pooling=false;port=8500"/></connect..
分类:
移动开发 时间:
2015-07-02 17:46:29
阅读次数:
179
添加App.config,并添加如下内容: 如果app.config中需要添加其他节点,保证configSec...
c#读取XML XML文件是一种常用的文件格式,例如WinForm里面的app.config以及Web程序中的web.config文件,还有许多重要的场所都有它的身影。Xml是Internet环境中跨平台的,依赖于内容的技术,是当前处理结构化文档信...