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

16 views
Skip to first unread message

yashwanth balanagu

unread,
Jun 18, 2020, 2:53:11 AM6/18/20
to Django users
why in views we use def(functions) and model we use class, why not we use def(fuction) in models and class in views

Vishesh Mangla

unread,
Jun 18, 2020, 3:15:35 AM6/18/20
to django...@googlegroups.com

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

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

 

Reply all
Reply to author
Forward
0 new messages