Python flask course

I have doubt in datetime module in flask when I run . It shows the error (TypeError

TypeError: function missing required argument ‘year’ (pos 1))

Flask is that frontend fretwork or backend