上一页 1 2 3 4 5 6 7 8 9 ··· 39 下一页
摘要: 邮箱: views.py: from django import forms from django.forms import widgets class RegForm(forms.Form): email = forms.EmailField( label="邮箱", widget=widget 阅读全文
posted @ 2019-09-05 22:39 Sch01aR# 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 普通 form 表单的处理: reg.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>注册页面</title> </head> <body> <form action="/reg/" method 阅读全文
posted @ 2019-09-05 18:32 Sch01aR# 阅读(542) 评论(0) 推荐(0) 编辑
摘要: SweetAlert Github:https://github.com/lipis/bootstrap-sweetalert 下载完后放入 /static/ 目录下 sweetalert.html: <!DOCTYPE html> <html lang="en"> <head> <meta cha 阅读全文
posted @ 2019-09-04 23:10 Sch01aR# 阅读(803) 评论(0) 推荐(0) 编辑
摘要: app01/__int__.py: import pymysql pymysql.install_as_MySQLdb() app01/models.py: from django.db import models class Person(models.Model): name = models. 阅读全文
posted @ 2019-09-03 22:11 Sch01aR# 阅读(181) 评论(0) 推荐(0) 编辑
摘要: index.html: <input type="text" id="i1">+ <input type="text" id="i2">= <input type="text" id="i3"> <input type="button" value="AJAX提交" id="b1"> <script 阅读全文
posted @ 2019-09-03 21:04 Sch01aR# 阅读(2050) 评论(0) 推荐(0) 编辑
摘要: AJAX 局部刷新实例: 使用 jQuery 实现基本的发送 AJAX 请求 index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title> ajax 局部刷新实例 </title> </head> 阅读全文
posted @ 2019-09-01 17:48 Sch01aR# 阅读(565) 评论(0) 推荐(0) 编辑
摘要: urls.py: from django.conf.urls import url from app02 import views urlpatterns = [ # app02 url(r'^app02/login/', views.login), url(r'^app02/home/', vie 阅读全文
posted @ 2019-08-31 23:20 Sch01aR# 阅读(389) 评论(0) 推荐(0) 编辑
摘要: urls.py: from django.conf.urls import url from app02 import views urlpatterns = [ # app02 url(r'^app02/login/', views.login), url(r'^app02/home/', vie 阅读全文
posted @ 2019-08-31 22:57 Sch01aR# 阅读(1911) 评论(0) 推荐(1) 编辑
摘要: urls.py: from django.conf.urls import url from app01 import views urlpatterns = [ url(r'^login/', views.login), url(r'^home/', views.home), url(r'^ind 阅读全文
posted @ 2019-08-31 22:18 Sch01aR# 阅读(840) 评论(0) 推荐(0) 编辑
摘要: home.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>个人信息页面</title> </head> <body> <p>个人信息页面</p> </body> </html> 只有返回一串字符串 阅读全文
posted @ 2019-08-12 22:13 Sch01aR# 阅读(489) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 39 下一页