git建立分支进行开发并且merge分支的方法

# 分支的创建和合并 # git branch yourbranch # git checkout yourbranch 切换到yourbranch # 开发yourbranch分支,然后开发之后与master分支合并 # git checkout master # git merge yourbranch # git branch -d yourbranch 合并完后删除本地分支
Git | 2013-10-17 16:57 | 阅读 2290 次 | 评论 0 条

django在views中把时间转化为本地时间的方法

from django.utils import timezone print timezone.localtime(thetime) #thetime即为需要转换的时间 另外:django中获取当前时间不要用datetime.today(),要用timezone.now()
Python | 2013-10-17 11:22 | 阅读 6546 次 | 评论 0 条
浏览2872606次
文章归档
最新评论
  • 时光拾荒者:CtrlCV还是强的😝
  • 硬识岩丝:解决了,太感谢了~
  • xiwang12:路过
  • 里苦不功:不校验mysql版本是否与当前django框架是否兼容