I'm using Django and Python 3.7. I'm trying to calculate a new datetime by adding a number of seconds to an existing datetime. From this -- What is the standard way to add N seconds to datetime.time in Python?, I thought i could do
new_date = article.created_on + datetime.timedelta(0, elapsed_time_in_seconds)
where "article.created_on" is a datetime and "elapsed_time_in_seconds" is an integer. But the above is resulting in an
type object 'datetime.datetime' has no attribute 'timedelta'
error. What am I missing