转换python3代码至python2,更改数据库。

This commit is contained in:
zhangxu
2016-10-07 17:02:52 +08:00
parent cf4d627f6b
commit 2697b834ed
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
from query import queryTool
from fetchQzone.query import queryTool
querytool=queryTool()
jscssurl=""
+1 -1
View File
@@ -1,4 +1,4 @@
from models import people,comment,feed,nick
from fetchQzone.models import people,comment,feed,nick
from django.db import connection
import types
import MySQLdb
+1 -1
View File
@@ -1,5 +1,5 @@
import importlib,sys
importlib.reload(sys)
#importlib.reload(sys)
#sys.setdefaultencoding('utf-8')
import pymysql
pymysql.install_as_MySQLdb()
+4 -2
View File
@@ -11,7 +11,7 @@ ADMINS = (
MANAGERS = ADMINS
local={
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'fetchQzone', # Or path to database file if using sqlite3.
'NAME': 'fqzone', # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
'USER': 'root',
'PASSWORD': 'z',
@@ -80,12 +80,14 @@ STATIC_ROOT = ''
# URL prefix for static files.
# Example: "http://example.com/static/", "http://static.example.com/"
STATIC_URL = 'http://ncwugirl.qiniudn.com/'
#STATIC_URL = 'http://ncwugirl.qiniudn.com/'
STATIC_URL = '/static/'
#DOMAIN
domain="www.ncwugirl.duapp.com"
#STATIC_URL = '/static/'
# Additional locations of static files
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.