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:
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.
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.
This question already has answers here: Closed 10 years ago. Possible Duplicate: Example of Django Class-Based DeleteView
I\'m trying to introduce class-based views in my project. Looked good so far, until I found the following problem.
I am using inlineformset_factory to generate a formset as so: FormSet = inlineformset_factory(Model1, Model2, extra=0)
I have a class QuestionView which is derived from the FormView class. Here is a code snippet to explain my problem:
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
I have a Project model. This model has Days which are inlines. How do I display them using a DetailView?
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