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 | 阅读 2144 次 | 评论 0 条

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

from django.utils import timezone print timezone.localtime(thetime) #thetime即为需要转换的时间 另外:django中获取当前时间不要用datetime.today(),要用timezone.now()
Python | 2013-10-17 11:22 | 阅读 6442 次 | 评论 0 条
浏览2776868次
文章归档