django-generic-views
Django: CreateView fail_url
I\'ve the following code and I want form_invalid method to return the same page as success_url. I\'ve been considering sub-classing CreateView but I want to know public opinion.[详细]
2023-04-12 14:14 分类:问答Can I combine Create and List class based generic views using mixins?
I\'m looking for the easiest way to combine List and Create functionally with generic class views. I want to have a page that has an item list and a form to add a new item on the bottom.[详细]
2023-04-08 07:36 分类:问答Replacement for num_latest with class-based date-based generic views?
I\'ve switched to Django 1.3 in order to get pagination for my date based generic views. This works fine, however there is a page where I want a specific number of items but do not want it paginated.[详细]
2023-04-04 16:49 分类:问答Manually calling a class based generic view in Django
I\'m currently trying to call a class based Generic view from within another class based generic view and cant seem to do it correctly.[详细]
2023-04-01 10:44 分类:问答Django form prefix with class based generic view
How can I set the form prefix keyword with the new class-based generic views in Django 1.3?Se开发者_运维百科tting the prefix prevents duplicate id in the rendered HTML.This is documented here for the[详细]
2023-04-01 03:37 分类:问答django's generic view problem (detailview, get_queryset)
Generic views exist to make our lifes easier, but the time spent on understanding how these stuff work makes them harder actually. Maybe it\'s me but I\'ve trying to figure how to fix this for a l开发[详细]
2023-03-31 01:43 分类:问答Django problematic view
I have this Django generic view: def post_list(request, page=0, paginate_by=1, **kwargs): page_size = getattr(settings,\'BLOG_PAGESIZE\', paginate_by)[详细]
2023-03-27 14:41 分类:问答Django trouble with generic.GenericTabularInline in admin
I have a generic Django media model that I want to relate to a number of other models.Everything seems to be working fine but I am unable to save new or existing objects using an inline form in the ad[详细]
2023-03-24 22:33 分类:问答How to use pagination in class-based generic views?
I try to implement pagination to class-based generic view and in way I did it, it\'s not works. urls url(r\'^cat/(?P<category>[\\w+\\s]*)/page(?P<page>[0-9]+)/$\',[详细]
2023-03-23 20:09 分类:问答django how to loop through the context object passed back by a generic detailview?
I\'m using a generic DetailView to display a project object. Can I loop through开发者_JS百科 the fields somehow in my template or do I have to place every field.[详细]
2023-03-20 18:49 分类:问答