If you are using function based view in your views.py . After you must have
equated the input values through the name attribute to the instance of the
class in your model, then instance.save() before you redirect.
This should be done in the views.py not models.

On Thu, Nov 10, 2022, 20:07 Pooja Kumari <poojaissar...@gmail.com> wrote:

> Where I have to use save() method? In models or somewhere else?
>
> On Thu, Nov 10, 2022, 9:19 PM Lakshyaraj Dash <
> dashlakshyaraj2...@gmail.com> wrote:
>
>> Please see that if you're calling the .save() method or not
>>
>> On Thu, Nov 10, 2022, 21:02 Pooja Kumari <poojaissar...@gmail.com> wrote:
>>
>>> Hi.. Can anyone help me with django templates? Actually I have a
>>> registration page where user can signup and data will be saved in admin
>>> panel or database but I am not able to do that. Registration page is
>>> working when I hit URL but data is not saving in database. Let me know If
>>> anyone have idea about this type of project. I'll be very grateful for your
>>> help.
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAHYvwbWDVFjuddPah3WUX8M9H6ojvDSjQD_mn7W6AgcT_pQsGQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAHYvwbWDVFjuddPah3WUX8M9H6ojvDSjQD_mn7W6AgcT_pQsGQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAF7qQgBrQoWDSpStS9quQ1jSWxpAD9s7kJqHgFCgiCnEMtd%2BfQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAF7qQgBrQoWDSpStS9quQ1jSWxpAD9s7kJqHgFCgiCnEMtd%2BfQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHYvwbUCfTxMRgaxfgGK_yOwth7VAHr35hNK8JgnhDGNVsq%2BTQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHYvwbUCfTxMRgaxfgGK_yOwth7VAHr35hNK8JgnhDGNVsq%2BTQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGoV8n%3DXZ02ScGLztCWTgceLxhQc%2BB7H5um7TxFbJiavE4tNxA%40mail.gmail.com.

Reply via email to