20 lines
398 B
Python
20 lines
398 B
Python
from django.shortcuts import render
|
|
from django.http import JsonResponse
|
|
|
|
import json
|
|
import requests
|
|
# Create your views here.
|
|
|
|
def send_wells(request):
|
|
print("sending wells")
|
|
payload = {'data':[
|
|
{
|
|
"id": 1,
|
|
"licence": "12-d-13",
|
|
},
|
|
{
|
|
"id": 2,
|
|
"licence": "16-a-111",
|
|
},]
|
|
}
|
|
return JsonResponse(payload)
|