Skip to content

why is day out of range?

i am trying to add a date to an application that I am writing. the apllication is actualy a list of activities. when i tried to add a datefield to the ui and save it into my database. i got this error this is my model this is my html page and this is my view i cant figure out

How to obtain a value from inside a loop

I will be implementing multiprocessing so that the loops are occurring at the same time, but how can I make it so at the end of each iteration, I can obtain the value of westernEurope.cases and easternEurope.cases so that I can add them together Answer IMHO there is no need for multiprocessing. With a generat…

Merge two json files implementing a row in a specific position

I’ve 3 json files. The first one have only one sentence (file1.json): The second one have only one sentence(file.json): And the third one is a list of dictionaries (example.json) And I want to insert the sentence of file1.json or file2.json just above “Person”: “Alex” in example.…

How to have categorical regex groups with Python

I have a text which corresponds to a pattern can must be split into categories. I thought of using groups to capture parts of the text that correspond to a particular category patern, and then map that part to my category. Unfortunately, as far as I know group names in Python regex cannot have the same name, …

Django foreign key JWT auth

In my project I have the Post and Category Model and full working JWT Authentication. I want to create a view, that creates a new Post object, in which author will be assigned to Token owner that I pass in authorization (Bearer Token ) postman.image.example. I dont know how to do it please help. Sorry for my …