2014-12-26から1日間の記事一覧
Django の csrf_token について - 混沌脳内 Django の csrf_token について - 混沌脳内 毎回ハマる。 Howtoを書くと、 viewに インポートは from django.views.decorators.csrf import csrf_protect from django.template import RequestContext アクション…
CsrfResponseMiddlewareはなくなったようだ。 MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', # 'django.middleware.csrf.CsrfResponseMiddleware', # 要らない 'django.contrib.sessi…
移植してみた shinriyo/jcalender · GitHub 元ネタ AddinBox(祝日マクロ-5)
日付はハマる ここ参考にした http://tech.oga-ria.com/introduction-of-go-vol3/ now := time.Now() date = time.Date(p.year, p.month, p.day, 0, 0, 0, 0, now.Location()) Dateのメソッドはかならずこれだけ引数が必要・・・。 Timeがnull許容でない Tim…