mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
1. 优化导入PTPP历史数据
This commit is contained in:
@@ -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'),
|
||||
]
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user