Python Flask- datetime.datetime has no attribute datetime : I keep having an issue with the module datetime at this section of the code whenever i run it, it should add the time to the alarm manager from the datetime-local input from the html part. But whenever the text and date are added an error of datetime.datetime is not an attribute of datetime.

```
import os
import sched
import time
from flask  import Flask, render_template, url_for, request , redirect, jsonify
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime

app=Flask(__name__)     

app.config['SQLALCHEMY_DATABASE_URI'] ='sqlite:///tabledata.db' #relative path
db = SQLAlchemy(app)

class Table(db.Model):
    id = db.Column(db.Integer, primary_key=True)    #refrencing id of each entry
    content = db.Column(db.String(50), nullable=True)   #the content that holds
    date_created = db.Column(db.DateTime, default=datetime.utcnow)  #print the date it was made
    alarm = db.Column(db.DateTime)    #stores the alarm

    def __repr__(self):
        return '<Task %r>' % self.id    #every new task made returns its own id

@app.route('/',methods=['POST','GET'])      #adding two methods posting and getting
def index():
    if request.method == 'POST':    #submitting form
        task_content = request.form['content'] #create new task from user input
        alarm_content = request.form['alarm']
        alarm_tmp = alarm_content.replace('T', '-').replace(':', '-').split('-')
        alarm_tmp = [int(v) for v in alarm_tmp]
        alarm_datetime = datetime.datetime(*alarm_tmp)
        task = Table(content=task_content,alarm=alarm_content) #have the contents = input

        

        try:
            db.session.add(new_task) #add to database 
            db.session.commit()
            return redirect('/') #redirect to input page

        except:
            return 'There was an error'
    else:
        tasks = Table.query.order_by(Table.date_created).all() #showing all contents on site
        return render_template('index.html',tasks=tasks)    #user viewing the page

if __name__ =="__main__":   
    app.run(debug=True)     #debugging true so errors are displayed

```