Top "Django-class-based-views" questions

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

<Django object > is not JSON serializable

I have the following code for serializing the queryset; def render_to_response(self, context, **response_kwargs): return HttpResponse(json.…

python django json serialization django-class-based-views
URL-parameters and logic in Django class-based views (TemplateView)

It is unclear to me how it is best to access URL-parameters in class-based-views in Django 1.5. Consider the following: View: …

python django django-class-based-views
How to use permission_required decorators on django class-based views

I'm having a bit of trouble understanding how the new CBVs work. My question is this, I need to require …

django django-views django-authentication django-class-based-views class-based-views
How to process a form (via get or post) using class-based views?

Im trying to learn class-based views, for a detail or list view is not that complicated. I have a search …

django django-class-based-views
Getting __init__() got an unexpected keyword argument 'instance' with CreateView of Django

Some details: Request Method: GET Request URL: http://localhost:8080/user/create Django Version: 1.5.1 Exception Type: TypeError Exception Value: ____init____() got …

django django-class-based-views
'function' object has no attribute 'as_view'

I am trying to use class based views, and get a strange error. The way I'm using the view seems …

python django django-class-based-views
Example of Django Class-Based DeleteView

Does anyone know of or can anyone please produce a simple example of Django's class-based generic DeleteView? I want to …

django django-views django-class-based-views
Django: Search form in Class Based ListView

I am trying to realize a Class Based ListView which displays a selection of a table set. If the site …

django forms listview django-class-based-views class-based-views
Django - Class Based Generic View - "No URL to redirect to"

I'm using the generic CreateView like: #urls.py from django.conf.urls.defaults import * from django.views.generic import CreateView …

django redirect django-class-based-views
success_url in UpdateView, based on passed value

How can I set success_url based on a parameter? I really want to go back to where I came …

django django-class-based-views