SyntaxFix
Write A Post
Hire A Developer
Questions
I run into the same error maybe you have already imported the module by using only import datetime so change form datetime import datetime to only import datetime. It worked for me after I changed it back.
import datetime
form datetime import datetime