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.