Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Very First Table
#1
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
Reply
#2
There are many examples if you google 'insert data into table django'
example:
https://www.geeksforgeeks.org/django-orm...ting-data/

It would help greatly to see a snippet of your code that will run stand alone.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020