上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页
摘要: 1、Django请求的生命周期 路由系统 -> 试图函数(获取模板+数据=》渲染) -> 字符串返回给用户 2、路由系统 /index/ -> 函数或类.as_view() /detail/(\d+) -> 函数(参数) 或 类.as_view()(参数) /detail/(... 阅读全文
posted @ 2017-11-24 19:52 颜言 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Django用户登陆以及跳转后台管理页面1http://www.cnblogs.com/ujq3/p/7891774.html Django用户登陆以及跳转后台管理页面2http://www.cnblogs.com/ujq3/p/7891901.html 1 from django.shortcut 阅读全文
posted @ 2017-11-24 19:16 颜言 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 请先写好以下,再来替换文件 Django用户登陆以及跳转后台管理页面1http://www.cnblogs.com/ujq3/p/7891774.html 1 from django.shortcuts import render 2 # Create your views here. 3 4 fr 阅读全文
posted @ 2017-11-24 18:34 颜言 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 1 """S14Djngo URL Configuration 2 3 The `urlpatterns` list routes URLs to views. For more information please see: 4 https://docs.djangoproject.com/en/ 阅读全文
posted @ 2017-11-24 18:01 颜言 阅读(5062) 评论(0) 推荐(0) 编辑
摘要: 1 RuntimeError at /login 2 You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to th 阅读全文
posted @ 2017-11-24 17:22 颜言 阅读(1436) 评论(0) 推荐(0) 编辑
摘要: 1 from django.shortcuts import render 2 # Create your views here. 3 4 from django.shortcuts import render 5 from django.shortcuts import redirect #重新定 阅读全文
posted @ 2017-11-24 16:45 颜言 阅读(4667) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-11-24 13:50 颜言 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1 /*! jQuery v1.12.3 | (c) jQuery Foundation | jquery.org/license */ 2 !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module. 阅读全文
posted @ 2017-11-24 13:03 颜言 阅读(2501) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 7 </head> 8 <body> 9 <h1>asdad</h1> 10 <h1>asdad</h1> 阅读全文
posted @ 2017-11-23 16:43 颜言 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 7 <script type ="text/javascript"> 8 //javascript代码 9 阅读全文
posted @ 2017-11-23 16:01 颜言 阅读(122) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页