Django "caches" my query. I realized it after updating my Database. When i run the Function with the Query, it takes some old Data before the Update. When i restart the Server, it works fine again.
Do anyone know, how i can solve this issue?
I use Raw Queries with the connection-function. (connection.cursor(sql)). In the End of each Query, i close the cursor with cursor.close().
I debugged the Code and found out, that after Updating my Database it takes the old Data until i restart my Server.