Very First Table - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Very First Table (/thread-37762.html) |
Very First Table - drunkenneo - Jul-18-2022 Hi I am trying to create a survey app where user will be asked some questions and they need to answer. I am creating it in Django. I have created SurveyTaker table having user ID, completed, Date column. and getting confused how to insert userid in SurveyTaker table once user starts survey. or is i am thinking wrong? whats the best way to insert the record of user in the TAble? Help is appreciated RE: Very First Table - Larz60+ - Jul-18-2022 There are many examples if you google 'insert data into table django' example: https://www.geeksforgeeks.org/django-orm-inserting-updating-deleting-data/ It would help greatly to see a snippet of your code that will run stand alone. |