03 2012 档案

摘要:配置數據庫 1 DATABASES = { 2 'default': { 3 # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 4 'ENGINE': 'django.db.backends.mysql', 5 'NAME': 'django', # Or path to database file if using sqlite3. 6 'USER': ' 阅读全文
posted @ 2012-03-28 21:35 cacique 阅读(886) 评论(0) 推荐(1) 编辑
摘要:dot filesdot files是指以.开头的文件,比如说.bash_profile。在类Unix系统下,dot files是默认隐藏的。在Shell下,很多的工具使用dot file作为默认导入的配置文件。比如说Bash对应的.bash_profile和.bashrc。在Shell下查看这些文件需要用ls -a。在你的home directory下用这个命令,你可能会看到一些已经存在的dot files。.bash_profile & .bashrc这两个文件的区别:.bash_profile 是以交互式、login方式进入bash时会调用的.bashrc 是交互式、non-lo 阅读全文
posted @ 2012-03-25 20:41 cacique 阅读(3182) 评论(0) 推荐(0) 编辑
摘要:首先贴出答案问题 :找不到libmysqlclient.18.dylib,把mysql安装目录的这个文件link到/usr/lib下:sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/安装过程第一次 问题ImportError:dlopen(/Users/aj/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-ix86_64.egg-tmp/_mysql.so,2):no suitable image found.Did find:/Users/aj/.pytho. 阅读全文
posted @ 2012-03-25 18:23 cacique 阅读(3790) 评论(0) 推荐(1) 编辑
摘要:在终端使用模板from django import templatet = template.Template('My name is {{ name }}.')提示错误Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packages/django/template/base.py", line 123, in __init__ if settings.TEMP 阅读全文
posted @ 2012-03-15 21:54 cacique 阅读(850) 评论(0) 推荐(0) 编辑

Copyright ©2011 Goodspeed Cheng
点击右上角即可分享
微信分享提示