#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 )
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 , 20 months ago
Description: | modified (diff) |
---|
comment:2 by , 20 months ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:4 by , 20 months ago
Note:
See TracTickets
for help on using tickets.
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/ :)