2017年9月13日

django models,views,urls,settings

摘要: models: from django.db import modelsclass UserInfo(models.Model): userName = models.CharField(max_length=12) passWord = models.CharField(max_length=12 阅读全文

posted @ 2017-09-13 18:26 run_qin 阅读(202) 评论(0) 推荐(0) 编辑

django urls

摘要: project_name/urls.py: from django.conf.urls import url,include from django.contrib import adminurlpatterns = [ url(r'^admin/', admin.site.urls), url(r 阅读全文

posted @ 2017-09-13 18:08 run_qin 阅读(136) 评论(0) 推荐(0) 编辑

django mysql settings

摘要: settings : DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mydatabase', 'USER':'root', 'PASSWORD':'root', 'HOST':'127.0.0.1' 阅读全文

posted @ 2017-09-13 16:58 run_qin 阅读(104) 评论(0) 推荐(0) 编辑

导航