摘要:原文参考docs.djangoproject.com, what can manage.py utility do? find here.1.Database Setup编辑settings.py文件,配置数据库,包括provider和数据库(文件路径)名称,然后保存(不确定要不要compile下)。如果为SQLite,使用此操作自动创建数据库文件(给出绝对路径名c:/blah/blah/demoDB.db,engine:'django.db.backends.sqlite3')使用:python manage.py syncdb2.设置Time Zone等默认为美国中部时间C
阅读全文
摘要:Phthon中Module,Package,__init__
阅读全文
摘要:1.Install python,download python windows installerfrom http://www.python.org/download/and do installation(add evironmentvariable); when this operation complete, there is no 'Script' folder under %Python% directory.2.Google search 'ez_setup', find ez_setup.py, copy it and save as ez_s
阅读全文
摘要:刚接触python,mark下所见所得:1.Python调用底层API,可在任何platform上运行,包括Windows、Mac、Unix;2.用#符号对代码或语句进行注释,#后的代码不被编译;3.print的时候使用逗号[,]告诉解释器不作新行输出;4.python程序可以运行在windows shell里(cmd line);5.代码可以在notepad下编辑,纯文本结构文件;6.变量声明:v=2; v="can be changedtoa string"; #the value of v can be changed at any time; name="
阅读全文