If your wish whatever you want to use, all you have to use is the “request” variable that Django gives you. Btw see “generic views”.

 

Sent from Mail for Windows 10

 

From: yashwanth balanagu
Sent: 18 June 2020 12:23
To: Django users
Subject: why in views we use def(functions) and model we use class, why not we use def(fuction) in models and class in views

 

why in views we use def(functions) and model we use class, why not we use def(fuction) in models and class in views

--
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/4e4b1e4b-1a59-43d9-8835-4992e986f943o%40googlegroups.com.

 

--
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/42275F4A-510E-4C3B-B5CA-14C4D4156228%40hxcore.ol.

Reply via email to