1、找不到模板,即使在setting.py添加了TEMPLATE_DIRS选项,也重启了django.最终还是报无法找到模板。如图:解决方法:注释掉setting.py文件里django系统自动生成的TEMPLATES,然后再重启django.就可以正常访问了。2、错误:CSRFverificationfailed.Requestaborted.如图解决办..
分类:
其他好文 时间:
2015-07-17 07:15:25
阅读次数:
205
uva 753 A Plug for UNIXYou are in charge of setting up the press room for the inaugural meeting of the United Nations Internet eXecutive (UNIX), which has an international mandate to make the free flow...
分类:
其他好文 时间:
2015-07-16 22:23:49
阅读次数:
200
Django 模板中免不了要用到一些js和CSS文件,查了很多网页,被弄得略晕乎,还是官网靠谱,给个链接大家可以自己看英文的。https://docs.djangoproject.com/en/1.6/howto/static-files/大致步骤是这样的:1.确保setting.py里的insta...
分类:
Web程序 时间:
2015-07-16 00:44:32
阅读次数:
185
要修改的文件是~/bash_profile这个配置文件,内容如下:
# Setting PATH for Java
JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home"
CLASS_PATH="$JAVA_HOME/lib"
# Setting PATH for Python 3.4
# The ...
分类:
移动开发 时间:
2015-07-14 20:27:45
阅读次数:
159
最近在做行车记录仪的事情,由于车载设备上的锂电池容量比较小,所以在停车熄火,保存数据后需要自动关机,由于Shutdown的权限不对普通应用开放,所以需要在源码下编译代码。可以自己写个BroadcastReceiver放到Setting源码里,也可以是独立应用。manifest节点需要声明系统级uid:android:sharedUserId="android.uid.system"以及关机权限:<u...
分类:
移动开发 时间:
2015-07-14 18:23:14
阅读次数:
183
代码中是好的,但是运行时会乱码解决方法,file-》setting-》editor-》file encoding 将project encoding改成utf-8记得重启Android studio!!!然后代码中会乱码,把乱码删掉,重新输入中文,运行后乱码消失:
分类:
移动开发 时间:
2015-07-14 13:03:54
阅读次数:
176
423.Which of the following describes how a distributed resumable transaction behaves?
A. The resumable setting on the initiating session determines the resumable conditions for the entire
distribute...
分类:
其他好文 时间:
2015-07-14 11:22:09
阅读次数:
138
Warning:date():It is not safe to rely on the system‘s timezone setting.You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those...
分类:
其他好文 时间:
2015-07-14 00:15:57
阅读次数:
143
利用runtime调用方法,可实现不做import,直接调用// Build Setting--> Apple LLVM 6.0 - Preprocessing--> Enable Strict Checking of objc_msgSend Calls 改为 NO- (void)execFunc...
分类:
移动开发 时间:
2015-07-12 18:44:14
阅读次数:
162