python örnek
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python örnek相关的知识,希望对你有一定的参考价值。
$.ajax({
url: 'http://localhost:8000/@guneysu/ajax',
type: 'POST',
contentType: 'application/json; charset=utf-8',
data: JSON.stringify({ad:"Ahmed", soyad:"GÜNEYSU"}),
dataType: 'json',
success: function(result) {
let result = result;
console.debug(result);
}
});
# Create your views here.
# coding: utf-8
from django.core.urlresolvers import reverse
from django.db.models import Avg, Min, Max
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from django.shortcuts import render, get_object_or_404
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import View
import models
from .models import MicroPost, MicroPostRatings
@csrf_exempt
def ajax(request, *args, **kwargs):
if request.is_ajax() and request.method == 'POST':
return JsonResponse(data=dict(adresiniz="https://git.io/v6oRz"))
以上是关于python örnek的主要内容,如果未能解决你的问题,请参考以下文章
python RövarspråksgeneratoriPython
python Biröğrencinin2tanesınavnotunukullanıcıdanalıportalamasınıbulunuz。 100'lüksistem
python基础—lambda内置函数三元函数(深入学习)
246.Strobogrammatic Number
053第246题
ServerSelectionTimeoutError(pymongo.errors.ServerSelectionTimeoutError:147.234.32.246:27017