Hi,
I don't really understand what you mean, but there is a ListView in the
generic views package. To use that all you really need to do is to tell the
listview class what model you are using. For example:
class UserList(ListView):
model = User
You can see the information about the view here :
https://docs.djangoproject.com/en/1.10/ref/class-based-views/generic-display/#listview
Regards,
Andréas
2017-03-05 9:46 GMT+01:00 刘夏 <[email protected]>:
> can i use the listview which the django-admin used im my tempate?
>
>
>
> 发自我的小米手机
>
> --
> 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/1r8nrgiuljvspqcct5jrkv0g.1488703561559%40email.android.
> com
> <https://groups.google.com/d/msgid/django-users/1r8nrgiuljvspqcct5jrkv0g.1488703561559%40email.android.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/CAK4qSCeRzqt4DgdB7mXPYYYYcXjmM_x5b6i_myb1OviHXhCcMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.