|
@@ -9,7 +9,7 @@ from Service.ModelService import ModelService
|
|
import time,os
|
|
import time,os
|
|
from Object.ResponseObject import ResponseObject
|
|
from Object.ResponseObject import ResponseObject
|
|
from Object.TokenObject import TokenObject
|
|
from Object.TokenObject import TokenObject
|
|
-from Ansjer.config import BASE_DIR
|
|
|
|
|
|
+from Ansjer.config import BASE_DIR, CONFIG_INFO, CONFIG_CN
|
|
|
|
|
|
|
|
|
|
def StatisticsData(request):
|
|
def StatisticsData(request):
|
|
@@ -448,7 +448,7 @@ ul {
|
|
</style>
|
|
</style>
|
|
"""
|
|
"""
|
|
|
|
|
|
- if os.environ.get('DJANGO_SETTINGS_MODULE') == 'Ansjer.cn_config.formal_settings':
|
|
|
|
|
|
+ if CONFIG_INFO == CONFIG_CN:
|
|
return HttpResponse(html)
|
|
return HttpResponse(html)
|
|
response = ResponseObject()
|
|
response = ResponseObject()
|
|
return response.json(414)
|
|
return response.json(414)
|