Error in to save data in DB using Django ORM

19 views
Skip to first unread message

Ganesh Prajapat

unread,
Jun 6, 2020, 4:48:31 PM6/6/20
to Django users
hello,
I have a problem in my project.
basically scenario is i have 3 classes in models.py(Subject,Exam,Registration).
Subject class have 2 field(subject_name,subject_code,id(pk)).
Exam class have 3 field(exam_name,exam_code(pk),subject_of_exam(Foreign key relation with Subject class)).
Registration class have also 3 field(email,password,data_of_exam_id(Foreign key relation with Exam class))

above is all about my code examination.
Problem is how can i save data in Registration table.I try of the things which i know but i can't save data in Registration table.
so if anybody know how save data in Registration table please suggest me.
Thank-you.

Shamgar Musobero

unread,
Jun 7, 2020, 2:07:27 AM6/7/20
to django...@googlegroups.com
I am a student who developed a web based system to track where corona virus is in my country .It is intergrated with google maps.The link is https://shamgarmusobero.github.io/COVID-19/
Open dont hesitate

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0bb28b7a-f886-45bc-a76b-eaaa012f0773o%40googlegroups.com.

wongX Ndeso

unread,
Jun 7, 2020, 10:27:37 AM6/7/20
to django...@googlegroups.com
Well, can you send the error message? It's important before i answer your question

Reply all
Reply to author
Forward
0 new messages