i want compare datetime django

template

 <input type="datetime-local" class="form-control" name="time_start">
 <input type="datetime-local" class="form-control" name="time_end">

i want compare “time_start < > = ! time_end” in views.py

I think this is dependent upon the form in your forms.py, post that. Once you have the input data cast as the correct type the comparisons are just normal Python comparisions:

https://docs.python.org/3/reference/expressions.html#comparisons

i don’t compare datetime … help me!

You need to post the views and forms here, as requested in the previous response.
When posting code here, enclose each block of code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```.
As a side note, we’re all community members here, volunteering our time to help people as available. I suggest you read How do I ask a good question? - Help Center - Stack Overflow to improve your chances of getting responses that will actually help you.