mac使用itermhttps://www.iterm2.com/1.安装iterm22.使用oh-my-zshwgethttps://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh-O-|sh3.cp~/.oh-my-zsh/templates/zshrc.zsh-template~/.zshrc4.vim~/.zshr
分类:
系统相关 时间:
2018-07-16 15:04:19
阅读次数:
235
1. 视图的功能 接收请求,进行处理,与M(models)和T(templates)进行交互,返回应答。 返回html内容 HttpResponse,也可能重定向 redirect,还可以返回json数据。 2. 视图函数使用 2.1 使用 1) 定义视图函数 request参数必须有。它是一个Ht ...
分类:
其他好文 时间:
2018-07-15 21:19:49
阅读次数:
190
前言 Django 模板报错了 修改方法: 将你的工程文件下(my_site)的settings.py中的TEMPLATES中的templates字段全部改为template, 亲测可用~^~ ...
分类:
其他好文 时间:
2018-07-15 19:49:31
阅读次数:
359
<?php //模板类class Templates { //我想通过一个字段来接受变量 //但是又不知道有多少个变量要接受。 //所以我们要动态的接受变量 //可以通过数组来实现这个功能。 private $_vars = array(); //保存系统变量 private $_config = ...
分类:
其他好文 时间:
2018-07-15 16:14:48
阅读次数:
152
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render fun ...
分类:
其他好文 时间:
2018-07-14 16:30:02
阅读次数:
188
图解:说明:系统版本:CentOSLinuxrelease7.4.1708(Core)需要先在一台机上先装好nginx,再配置ansible服务1、将替换的文件放入到templates中,ansible可以找到2、自动化安装时得确定系统版本一致3、gather_facts:True获取主机的信息,可以关闭4、roles目录下有两个角色,common为一些准备操作,install为安装nginx的操
分类:
其他好文 时间:
2018-07-13 13:18:36
阅读次数:
129
报这个错误 有人说是代理问题。我也不懂,但这个方法有用 1.去github上下载要初始化的模板 https://github.com/vuejs-templates/webpack 或者直接用git去clone你要的模板。 2.将下载好的模板解压。git clone的不用解压。 3.将文件夹放到c: ...
分类:
Web程序 时间:
2018-07-13 01:18:53
阅读次数:
1045
1 、批量数据导入 主url urls modles 数据库迁移 views:批量生成数据 views,前台显示所有的book_list templates 模板层 2、分页器的使用 3 4 5 6 7 ...
分类:
其他好文 时间:
2018-07-12 23:48:23
阅读次数:
211
1.创建itemConfiguration-->Templates-->Template OS Linux-->items-->create item name:memory used percent type:Calculated #计算类型 key:vm.memory.size[usedperc ...
分类:
其他好文 时间:
2018-07-12 23:47:44
阅读次数:
1655
1.快速排序 1 #include <cstdio> 2 const int MAXN=1e5+1; 3 int a[MAXN]; 4 inline int read() 5 { 6 int f=1,x=0;char c=getchar(); 7 while(c<'0'||c>'9'){if(c== ...
分类:
其他好文 时间:
2018-07-10 20:14:27
阅读次数:
141