摘要: 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 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 7 <script src="commons.js"></script> 8 9 </head> 10 <b 阅读全文
posted @ 2017-11-23 15:52 颜言 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 1 pycharm快捷键及一些常用设置 2 3 Alt+Enter 自动添加包 4 shift+O 自动建议代码补全 5 Ctrl+t SVN更新 6 Ctrl+k SVN提交 7 Ctrl + / 注释(取消注释)选择的行 8 Ctrl+Shift+F 高级查找 9 Ctrl+Enter 补全 1 阅读全文
posted @ 2017-11-23 15:37 颜言 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 </head> 7 <body> 8 <input type="text" id="user"> 9 <in 阅读全文
posted @ 2017-11-23 15:18 颜言 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1、配置模板的路径 1 TEMPLATES = [ 2 { 3 'BACKEND': 'django.template.backends.django.DjangoTemplates', 4 'DIRS': [os.path.join(BASE_DIR, 'templates')] 5 , 6 'A 阅读全文
posted @ 2017-11-23 14:50 颜言 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 1 from django.shortcuts import render 2 3 # Create your views here. 4 5 6 7 from django.shortcuts import render 8 9 def login(request): 10 11 return r 阅读全文
posted @ 2017-11-23 14:06 颜言 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 <style> 7 label{ 8 width:80px; 9 text-align:right; 10 阅读全文
posted @ 2017-11-23 13:43 颜言 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1 from django.shortcuts import render 2 3 # Create your views here. 4 5 6 from django.shortcuts import HttpResponse 7 8 def login(request): 9 string = 阅读全文
posted @ 2017-11-23 13:19 颜言 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 1 from django.shortcuts import render 2 3 # Create your views here. 4 5 6 from django.shortcuts import HttpResponse 7 8 9 def home(request): 10 return 阅读全文
posted @ 2017-11-23 12:36 颜言 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-11-23 12:08 颜言 阅读(296) 评论(0) 推荐(0) 编辑
摘要: manage.py startapp cmdb 如果运行错误记得加环境变量 c:\python35\python.exe manage.py startapp cmdb 阅读全文
posted @ 2017-11-23 11:44 颜言 阅读(530) 评论(0) 推荐(0) 编辑
摘要: Python之常用文件操作 阅读全文
posted @ 2017-11-23 11:33 颜言 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 如果不是在JetBrains PyCharm 2017.2里创建的想在JetBrains PyCharm 2017.2里运行。可以在 编辑结构 进行配置正常使用 阅读全文
posted @ 2017-11-23 11:13 颜言 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 在JetBrains PyCharm 2017.2里选择 文件(F) 新项目 点击 三角形 运行 修改Urls.py 1 """S14Djngo URL Configuration 2 3 The `urlpatterns` list routes URLs to views. For more i 阅读全文
posted @ 2017-11-23 00:05 颜言 阅读(302) 评论(0) 推荐(0) 编辑