Skip to content

Tag: django

Div Columns not aligning correctly in Django/Python

I’m following along a tutorial and, unfortunately, his code editor automatically indented everything when he copied/pasted a new <div> (Sigh) (In the second pic I cut off the top where it has LOGO in the top right on accident in the screenshot) The problem is i Room.html This is what it currently …

How do you run a function to compare two date by month?

I’m trying to run a function to compare today’s month with the month input by a user. The dates will be input by the user as ‘YYYY-MM-DD’. This is what I have so far: But get the following error: fromisoformat: argument must be str So I tried using the following function instead with s…