Class based views vs methods

29 views
Skip to first unread message

guettli

unread,
Mar 2, 2020, 4:59:10 PM3/2/20
to Django users
The django tutorial starts with method based views.

What is the state of the art?

If I am unsure: Do you suggest to use class-based or method-based views?

Regards,
  Thomas

Ernest Thuku

unread,
Mar 2, 2020, 5:04:38 PM3/2/20
to django...@googlegroups.com
first I can advice you to learn the function based views. They will give you a good foundation of how views work and after that switch to Class Based Views(they are magical and easy to use).

--
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/963bb6e7-d8e2-4987-b6c8-31cbcbfbc6a0%40googlegroups.com.

guettli

unread,
Mar 4, 2020, 9:26:17 AM3/4/20
to Django users
Thank you for this hint.


Am Montag, 2. März 2020 23:04:38 UTC+1 schrieb Ernest Thuku:
first I can advice you to learn the function based views. They will give you a good foundation of how views work and after that switch to Class Based Views(they are magical and easy to use).

On Tue, Mar 3, 2020 at 12:59 AM guettli <guettl...@thomas-guettler.de> wrote:
The django tutorial starts with method based views.

What is the state of the art?

If I am unsure: Do you suggest to use class-based or method-based views?

Regards,
  Thomas

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages