Created
February 10, 2015 15:55
-
-
Save Shinichi-Nakagawa/d895f37cdc4177c83632 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ENGINEにPyMySQLの接続文字列を追加(4,5行目) | |
if ENGINE == 'sqlite': | |
dbString = ENGINE + ':///%s' % (DATABASE) | |
elif ENGINE == 'pymysql': | |
dbString = 'mysql+' + ENGINE + '://%s:%s@%s/%s' % (USER, PASSWORD, HOST, DATABASE) | |
else: | |
if USER and PASSWORD: | |
dbString = ENGINE + '://%s:%s@%s/%s' % (USER, PASSWORD, HOST, DATABASE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment