django-class-based-views
Monday as first day of week for WeekArchiveView
How do I convin开发者_C百科ce WeekArchiveView that Monday is the first day of week?Juding by this diff, it is achieved by adding week_format parameter to urls.py:[详细]
2023-04-10 17:40 分类:问答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 分类:问答Django sample DeleteView [duplicate]
This question already has answers here: Closed 10 years ago. Possible Duplicate: Example of Django Class-Based DeleteView[详细]
2023-04-03 10:31 分类:问答How do I override `as_view` in class-based views in Django?
I\'m trying to introduce class-based views in my project. Looked good so far, until I found the following problem.[详细]
2023-04-02 05:45 分类:问答Filter Objects in a Django Formset
I am using inlineformset_factory to generate a formset as so: FormSet = inlineformset_factory(Model1, Model2, extra=0)[详细]
2023-03-31 05:14 分类:问答Updating context data in FormView form_valid method?
I have a class QuestionView which is derived from the FormView class. Here is a code snippet to explain my problem:[详细]
2023-03-24 06:00 分类:问答django: how do I migrate this view to class-based generic view equivalent?
I have trouble transforming the following code into the new django 开发者_如何学运维1.3 class-based generic view format. Specifically, I don\'t understand how I can pass the \'extra_context\' to the c[详细]
2023-03-20 20:04 分类:问答How do i display inlines with DetailView?
I have a Project model. This model has Days which are inlines. How do I display them using a DetailView?[详细]
2023-03-19 05:31 分类:问答Django Class-Based Generic Views and Authentication
I am pretty new to Django (starting with 1.3). In building an app, I went with the new class-ba开发者_运维问答sed generic views from day one, using a combination of the built in classes and subclassin[详细]
2023-03-19 03:40 分类:问答