Which is a better

24 views
Skip to first unread message

Fredrick Edward

unread,
Jun 22, 2020, 6:10:50 PM6/22/20
to django-users
Views and models created using functions or classes? 

mohamed khaled

unread,
Jun 22, 2020, 6:15:51 PM6/22/20
to django...@googlegroups.com, django-users
if you want to learn and see what happens use function based view but you need to write a lot compared with class based view it's simple and easy. someimes you can work with both after creating a lot of projects you will know when you will use class or function depends how are they easy. it's better to know both and work with both

On Jun 22 2020, at 8:09 pm, Fredrick Edward <fredri...@gmail.com> wrote:
Views and models created using functions or classes? 

--
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.
Sent from Mailspring

osman gone

unread,
Jun 22, 2020, 8:13:53 PM6/22/20
to django...@googlegroups.com
Class is best for model. 

On Tue, Jun 23, 2020, 12:10 AM Fredrick Edward <fredri...@gmail.com> wrote:
Views and models created using functions or classes? 

--

Shaurya Pratap Singh

unread,
Aug 10, 2020, 11:21:13 AM8/10/20
to Django users


On Monday, 22 June 2020 23:40:50 UTC+5:30, Fredrick Adhing'a wrote:
Views and models created using functions or classes? 

classes are the best for model templates views.
 
Reply all
Reply to author
Forward
0 new messages