Django
Conorkkkx
Python Django MySQL Html CSS HTTP
算法、数据结构、
展开
-
Django_Learning Part1-创建
1. 创建 Django project start project django-admin startproject name 2. 创建 Django App start app python3 manage.py startapp firstapp setting 添加 app INSTALLED_APPS在末尾添加创建的app的名字 3. 数据库 合并 ...原创 2018-05-28 23:16:17 · 122 阅读 · 0 评论 -
Django_Learning Part3-表单POST
1.models models.py添加 class comment(models.Model): name = models.CharField(null=True, blank=True, max_length=50) comment = models.TextField(null=True, blank=True) def __str__(self): ...原创 2018-06-11 14:06:21 · 120 阅读 · 0 评论 -
Django_Learning Part2-文章分类GET
1.models models.py添加 class Article(models.Model): #标签 TAG_CHOICES = ( ('tag1', 'Tag1'), ('tag2', 'Tag2'), ) tag = models.CharField(null=True, blank=True, max_length=10,...原创 2018-05-30 17:53:24 · 140 阅读 · 0 评论 -
Django-错误集合
1.TypeError: init() missing 1 required positional argument: ‘on_delete’ 错误 解决方法原创 2018-06-06 17:06:35 · 172 阅读 · 0 评论