Changes between Initial Version and Version 1 of Ticket #34516


Ignore:
Timestamp:
Apr 25, 2023, 9:50:47 AM (20 months ago)
Author:
Avash
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34516 – Description

    initial v1  
    1 ef submit_expense(request):
    2     ###user submit expense###
    3     #TODO:
    4  
     1
     2from django.shortcuts import render
     3from django.http import JsonResponse
     4from json import JSONEncoder
     5from django.views.decorators.csrf import csrf_exempt
     6from web.models import User,Token,Expense,Income
     7from datetime import datetime
     8# Create your views here.
     9@csrf_exempt
     10def submit_expense(request):
    511    this_token = request.POST.get("token")
    6 
    7    
    8 
    912    return JsonResponse({
    1013        "token": this_token
    1114    } )
    12 why this code return null
     15   
Back to Top