From 2697b834ededb2bcda7c6e37f3f701ff73408d38 Mon Sep 17 00:00:00 2001 From: zhangxu <738285867@qq.com> Date: Fri, 7 Oct 2016 17:02:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E6=8D=A2python3=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=87=B3python2=EF=BC=8C=E6=9B=B4=E6=94=B9=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fetchQzone/__init__.py | 2 +- fetchQzone/query.py | 2 +- mysite/__init__.py | 2 +- mysite/settings.py | 6 ++++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/fetchQzone/__init__.py b/fetchQzone/__init__.py index e57c5d1..398bcaf 100644 --- a/fetchQzone/__init__.py +++ b/fetchQzone/__init__.py @@ -1,4 +1,4 @@ -from query import queryTool +from fetchQzone.query import queryTool querytool=queryTool() jscssurl="" \ No newline at end of file diff --git a/fetchQzone/query.py b/fetchQzone/query.py index b28fdcf..6995867 100644 --- a/fetchQzone/query.py +++ b/fetchQzone/query.py @@ -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 diff --git a/mysite/__init__.py b/mysite/__init__.py index a654943..bc02300 100644 --- a/mysite/__init__.py +++ b/mysite/__init__.py @@ -1,5 +1,5 @@ import importlib,sys -importlib.reload(sys) +#importlib.reload(sys) #sys.setdefaultencoding('utf-8') import pymysql pymysql.install_as_MySQLdb() diff --git a/mysite/settings.py b/mysite/settings.py index 0009f01..dcf8b61 100644 --- a/mysite/settings.py +++ b/mysite/settings.py @@ -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.