摘要:
import random def get_ua(): first_num = random.randint(55, 62) third_num = random.randint(0, 3200) fourth_num = random.randint(0, 140) os_type = [ '(W 阅读全文
posted @ 2019-02-20 23:59
随性岁分享
阅读(162)
评论(0)
推荐(0)
摘要:
# Create your views here. from django.views import View # http://127.0.0.1:8000/books/ from rest_framework.authentication import SessionAuthentication 阅读全文
posted @ 2019-02-20 23:58
随性岁分享
阅读(136)
评论(0)
推荐(0)
摘要:
BooleanField -> BooleanField() NullBooleanField -> NullBooleanField() CharField -> CharField(max_length=None, min_length=None, allow_blank=False, trim 阅读全文
posted @ 2019-02-20 23:57
随性岁分享
阅读(262)
评论(0)
推荐(0)
摘要:
# 基本查询 print(BookInfo.objects.all()) print(BookInfo.objects.get(btitle='雪山飞狐').id) print(BookInfo.objects.get(id=3)) print(BookInfo.objects.get(pk=3)) 阅读全文
posted @ 2019-02-20 23:56
随性岁分享
阅读(469)
评论(0)
推荐(1)
浙公网安备 33010602011771号