Hello.

What is the difference between the statements: import datetime vs from
datetime import datetime

I got stuck with my IS_DATE_IN_RANGE error "<type
'exceptions.AttributeError'>(type object 'datetime.datetime' has no
attribute 'timedelta')" until i added "import datetime" to the
controller. All the while, I thought I already loaded datetime because I
already have this line: "from datetime import datetime".

TIA.

/r
Nik

Reply via email to