Here is a way to combine them:
https://docs.djangoproject.com/en/2.2/topics/class-based-views/mixins/

If you are using Django Rest Framework, they already have it:
"rest_framework.generics.ListCreateApiView"

regards,

Aldian Fazrihady
http://www.aldianfazrihady.com/en-us/



On Mon, 10 Jun 2019, 04:52 Emad G.Kamel, <[email protected]> wrote:

> Hi there
>
> I'm working on a clone to pastebin <https://pastebin.com/> and I want my
> home page contain a form for creating the snippet and side view to list
> latest snippets.
> How can I mix the ListView and CreateView to achieve that?
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8d8d5715-6058-4907-b9e8-6542116fb339%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/8d8d5715-6058-4907-b9e8-6542116fb339%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN7EoAZmU6AnPN9gFcaABL_f%2BzWMXqYGichRA133w_kPosKCdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to