How to write current date into Postgres with Python?

前端 未结 0 881
春和景丽
春和景丽 2020-12-05 01:48

I cannot write date into Postgres column with type \'date\'.

I use this code:

import datetime
import pytz

now = datetime.datetime.now(pytz.timezone(&q         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题