時間:2023-06-11 15:48:01 | 來源:網(wǎng)站運營
時間:2023-06-11 15:48:01 來源:網(wǎng)站運營
Python Web開發(fā)23-django 模板:因篇幅太多了,往期整理的22篇資料在最后哦
cd ~/Desktop/pytestworkon py_django
django-admin startproject test4
cd test4python manage.py startapp booktest
from django.conf.urls import urlfrom . import viewsurlpatterns=[ url(r'^$',views.index),]
#coding=utf-8from django.shortcuts import renderdef index(request): return render(request,'booktest/index.html')
<html><head> <title>模板練習(xí)</title></head><body></body></html>
#coding=utf-8from django.db import modelsclass BookInfo(models.Model): btitle = models.CharField(max_length=20) bpub_date = models.DateField() bread = models.IntegerField(default=0) bcommet = models.IntegerField(default=0) isDelete = models.BooleanField(default=False) class Meta: db_table='bookinfo'
01-四喜Clion:Python Web開發(fā)-django搭建環(huán)境友情提供
02-四喜Clion:Python Web開發(fā)02-django創(chuàng)建圖書管理項目
03-四喜Clion:Python Web開發(fā)03-django模型設(shè)計
04-四喜Clion:Python Web開發(fā)04-django后臺管理
05-四喜Clion:Python Web開發(fā)05-django視圖
06-四喜Clion:Python Web開發(fā)06-django模板
07-四喜Clion:Python Web開發(fā)07-django項目完成
08-四喜Clion:Python Web開發(fā)08-django ORM簡介
09-四喜Clion:Python Web開發(fā)09-django ORM-定義模型類
10-四喜Clion:Python Web開發(fā)10-django ORM-模型成員
11-四喜Clion:Python Web開發(fā)11-django ORM-查詢集
12-四喜Clion:Python Web開發(fā)12-django ORM-條件查詢
13-四喜Clion:Python Web開發(fā)13-django ORM-關(guān)聯(lián)的查詢
14-四喜Clion:Python Web開發(fā)14-django 視圖
15-四喜Clion:Python Web開發(fā)15-django 視圖-URLconf
16-四喜Clion:Python Web開發(fā)16-django 視圖-內(nèi)置錯誤視圖
17-四喜Clion:Python Web開發(fā)17-django 視圖-HttpReqeust對象
18-四喜Clion:Python Web開發(fā)18-django 視圖-QueryDict對象、GET屬性、POST屬性
19-四喜Clion:Python Web開發(fā)19-django 視圖HttpResponse對象
20-四喜Clion:Python Web開發(fā)20-django 視圖 子類JsonResponse
21-四喜Clion:Python Web開發(fā)21-django 視圖 子類HttpResponseRedirect
22-四喜Clion:Python Web開發(fā)22-django 視圖-狀態(tài)保持
關(guān)鍵詞:模板
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。