随笔分类 -  【★Python3★】

摘要:日更 阅读全文
posted @ 2020-03-14 23:05 Simon92 阅读(100) 评论(0) 推荐(0)
摘要:12 阅读全文
posted @ 2020-03-13 23:17 Simon92 阅读(138) 评论(0) 推荐(0)
摘要:日更 阅读全文
posted @ 2020-03-12 23:01 Simon92 阅读(125) 评论(0) 推荐(0)
摘要:日更 阅读全文
posted @ 2020-03-11 22:56 Simon92 阅读(143) 评论(0) 推荐(0)
摘要:日更 阅读全文
posted @ 2020-03-10 20:00 Simon92 阅读(168) 评论(0) 推荐(0)
摘要:日更 阅读全文
posted @ 2020-03-09 22:20 Simon92 阅读(120) 评论(0) 推荐(0)
摘要:11 阅读全文
posted @ 2020-03-08 15:20 Simon92 阅读(166) 评论(0) 推荐(0)
摘要:from django.contrib import admin from app01.models import * # Register your models here. # @admin.register(Book)# >单给某个表加一个定制 class MyAdmin(admin.Mode 阅读全文
posted @ 2020-03-04 23:58 Simon92 阅读(132) 评论(0) 推荐(0)
摘要:日更 阅读全文
posted @ 2020-03-03 23:54 Simon92 阅读(154) 评论(0) 推荐(0)
摘要:日更 阅读全文
posted @ 2020-03-02 21:41 Simon92 阅读(174) 评论(0) 推荐(0)
摘要:日更 阅读全文
posted @ 2020-03-01 22:26 Simon92 阅读(142) 评论(0) 推荐(0)
摘要:日更 阅读全文
posted @ 2020-02-29 21:58 Simon92 阅读(165) 评论(0) 推荐(0)
摘要:11 阅读全文
posted @ 2020-02-28 22:37 Simon92 阅读(124) 评论(0) 推荐(0)
摘要:日更 阅读全文
posted @ 2020-02-26 22:20 Simon92 阅读(116) 评论(0) 推荐(0)
摘要:日更 阅读全文
posted @ 2020-02-25 21:58 Simon92 阅读(136) 评论(0) 推荐(0)
摘要:日更 阅读全文
posted @ 2020-02-24 22:54 Simon92 阅读(167) 评论(0) 推荐(0)
摘要:日更 阅读全文
posted @ 2020-02-23 20:44 Simon92 阅读(145) 评论(0) 推荐(0)
摘要:一 admin的配置 django admin是django自带的一个后台app,提供了后台的管理功能。 基础知识点: 一 认识ModelAdmin 管理界面的定制类,如需扩展特定的model界面需从该类继承 二 注册medel类到admin的两种方式: 1 使用register的方法 2 使用re 阅读全文
posted @ 2020-02-22 23:14 Simon92 阅读(292) 评论(0) 推荐(0)
摘要:一 模版 一模版的组成 HTML代码+逻辑控制代码 二 逻辑控制代码的组成 1 变量(使用双大括号来引用变量) {{var_name}} 2 标签(tag)的使用(使用大括号和百分比的组合来表示使用tag) {%load staticfiles%} 3 过滤器(filter)的使用 {{ship_d 阅读全文
posted @ 2020-02-21 09:01 Simon92 阅读(241) 评论(0) 推荐(0)
摘要:urls.py from django.contrib import admin from django.urls import path from app01 import views urlpatterns = [ path('admin/', admin.site.urls), path('i 阅读全文
posted @ 2020-02-17 00:17 Simon92 阅读(183) 评论(0) 推荐(0)