Top "Django-class-based-views" questions

Django Class-based Views are Django views that are represented as classes.

Django class-based CreateView and UpdateView with multiple inline formsets

I have been trying to do Django class-based CreateView and UpdateView with multiple inline formsets CreateView works fine but UpdateView …

django django-class-based-views
Django class based post-only view

Sorry if this is a trivial question but I've been searching around for quite sometime and have been unable to …

django django-views django-class-based-views
Django DetailView - How to change the get_object to check a field

So I want to make a DetailView that shows a photo by itself and its associated information. However, I want …

python django django-views django-class-based-views
How to subclass django's generic CreateView with initial data?

I'm trying to create a dialog which uses jquery's .load() function to slurp in a rendered django form. The .load …

django-forms django-views django-class-based-views
How to redirect on conditions with class based views in Django 1.3?

I am using a ListView that list videos according to tags. The filtering happens in get_queryset(). I'd like to …

django redirect django-class-based-views
Django UpdateView without pk in url

Is it possible eliminate pk from url related to UpdateView? For example, if I have url(r'^myobj/update/(?P&…

django django-views django-urls django-class-based-views
Django Class Based View for both Create and Update

Say I want to create a Class Based View which both updates and creates an object. From a previous question …

django django-models django-views django-class-based-views
Set initial value to modelform in class based generic views

I'm using Class based generic views, can anybody suggest me how can i set the initial values to update form? …

python django django-forms django-views django-class-based-views
cache_page with Class Based Views

I'm trying to do cache_page with class based views (TemplateView) and i'm not able to. I followed instructions here: …

django django-class-based-views
How does the order of mixins affect the derived class?

Say, I have the following mixins that overlaps with each other by touching dispatch(): class FooMixin(object): def dispatch(self, *…

python django django-views django-class-based-views method-resolution-order