Opened 19 months ago

Closed 19 months ago

Last modified 19 months ago

#34516 closed Uncategorized (invalid)

request.post is null

Reported by: Avash Owned by: nobody
Component: Uncategorized Version: 4.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Avash)

from django.shortcuts import render
from django.http import JsonResponse
from json import JSONEncoder
from django.views.decorators.csrf import csrf_exempt
from web.models import User,Token,Expense,Income
from datetime import datetime
# Create your views here.
@csrf_exempt
def submit_expense(request):

this_token = request.POST.get("token")
return JsonResponse({

"token": this_token

} )


Change History (4)

comment:1 by Avash, 19 months ago

Description: modified (diff)

comment:2 by David Sanders, 19 months ago

Resolution: invalid
Status: newclosed

Hello.

The issue tracker is not a support channel. Please refer to the following link for places to get support: https://www.djangoproject.com/community/ :)

comment:3 by Avash, 19 months ago

why this requset return null

in reply to:  3 comment:4 by Mariusz Felisiak, 19 months ago

Replying to abtin1238:

why this requset return null

Again, Trac is not a support channel.

Note: See TracTickets for help on using tickets.
Back to Top