2019年7月12日
摘要: https://www.cnblogs.com/Dicky-Zhang/p/6925202.html 安装 yum install docker -y 无法启动docker vim /etc/sysconfig/doc ker OPTIONS='--selinux-enabled=false 镜像源 阅读全文
posted @ 2019-07-12 20:00 SZ_文彬 阅读(346) 评论(0) 推荐(0) 编辑
  2019年7月9日
摘要: 程序目录 models.py from django.db import models# Create your models here.class Category(models.Model): caption_c=models.CharField(max_length=16)# class Ar 阅读全文
posted @ 2019-07-09 23:27 SZ_文彬 阅读(174) 评论(0) 推荐(0) 编辑
摘要: content="""<p class='c1' id='i1'> asdfaa<span class='c2' style="font-family:NSimSun;">sdf<a>a</a>sdf</span>sdf</p><p> <strong class='c2' id='i2'>asdf< 阅读全文
posted @ 2019-07-09 13:26 SZ_文彬 阅读(305) 评论(0) 推荐(0) 编辑
  2019年7月8日
摘要: 本地端 url: url(r'req/',a2.req), commons.js alert(123); views.py from django.shortcuts import renderimport requests# Create your views here.def req(reque 阅读全文
posted @ 2019-07-08 17:42 SZ_文彬 阅读(219) 评论(0) 推荐(0) 编辑
  2019年7月2日
摘要: 程序目录 models.py from django.db import models# Create your models here.class UserType(models.Model): caption=models.CharField(max_length=32)class UserGr 阅读全文
posted @ 2019-07-02 23:36 SZ_文彬 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Form验证 UserInfoForm --> Form -->BaseForm(is_valid...) UserInfoModelForm -->ModelForm -->BaseModelForm -->BaseForm(is_valid...)提交表单报错:RuntimeError: You 阅读全文
posted @ 2019-07-02 23:35 SZ_文彬 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 程序目录 models.py from django.db import models# Create your models here.class UserInfo(models.Model): user=models.CharField(max_length=32) urls.py """s14 阅读全文
posted @ 2019-07-02 23:32 SZ_文彬 阅读(376) 评论(0) 推荐(0) 编辑
摘要: views request.body request.POST(request.body) request.FILES(request.body) request.GET request.XXX.getlist request.Meta(...) request.method(POST,GET,PU 阅读全文
posted @ 2019-07-02 23:30 SZ_文彬 阅读(157) 评论(0) 推荐(0) 编辑
  2019年6月27日
摘要: 程序目录 urls.py """s14_day21 URL Configuration"""from django.contrib import adminfrom django.conf.urls import url,includefrom app01 import viewsurlpatter 阅读全文
posted @ 2019-06-27 19:58 SZ_文彬 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 默认值:url(r'index/', views.index,{'name':"root"})def index(request,name): print(name) return HttpResponse('ok')命名空间:/a/ include('app01.urls',namespace=' 阅读全文
posted @ 2019-06-27 19:54 SZ_文彬 阅读(153) 评论(0) 推荐(0) 编辑