1. 优化导入PTPP历史数据

This commit is contained in:
ngfchl
2022-09-13 18:09:11 +08:00
parent e8b4b30aa4
commit ff1d2fa5d7
10 changed files with 416 additions and 44 deletions

View File

@@ -4,4 +4,5 @@ from . import views
urlpatterns = [
path(r'test_import', views.test_import, name='test_import'),
path(r'handle_json', views.handle_json, name='handle_json'),
]

View File

@@ -46,3 +46,8 @@ def test_import(request):
return JsonResponse(CommonResponse.success(data={
'messages': message_list
}).to_dict(), safe=False)
def handle_json(request):
if request.method == 'GET':
return render(request, 'pt_test/test_json.html')