摘要:
from django.contrib import adminfrom .models import ProductModel,OrderModel,zhangfu,qizi,Student,Teacher# fields = ['title','content','author']#字段列表# 阅读全文
posted @ 2021-10-13 21:13
略略略额
阅读(206)
评论(0)
推荐(0)
摘要:
from django.shortcuts import render,HttpResponsefrom .models import ProductModel# Create your views here.# 所有的请求信息,都在request对象,视图函数的参数必须要有requestdef i 阅读全文
posted @ 2021-10-13 21:10
略略略额
阅读(101)
评论(0)
推荐(0)
摘要:
"""djangoproject URL ConfigurationThe `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/ 阅读全文
posted @ 2021-10-13 21:10
略略略额
阅读(201)
评论(0)
推荐(0)
摘要:
from django.contrib import adminfrom django.urls import path,includefrom . import views# 当前的路由文件是总的路由文件urlpatterns = [ path('admin/', admin.site.urls) 阅读全文
posted @ 2021-10-13 21:09
略略略额
阅读(31)
评论(0)
推荐(0)
摘要:
from django.db import modelsfrom django.utils.html import format_html# Create your models here.class CategoryModel(models.Model): name = models.CharFi 阅读全文
posted @ 2021-10-13 21:04
略略略额
阅读(132)
评论(0)
推荐(0)

浙公网安备 33010602011771号