mirror of
https://github.com/zhangxu999/fetchQzone.git
synced 2026-10-17 05:12:02 +08:00
转换python3代码至python2,更改数据库。
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from query import queryTool
|
||||
from fetchQzone.query import queryTool
|
||||
|
||||
querytool=queryTool()
|
||||
jscssurl=""
|
||||
+1
-1
@@ -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
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user