Top "Django-class-based-views" questions

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

What is context_object_name in django views?

I'm new to django. And now I'm studying using the class-based generic views. Could someone please explain the aim and …

django-class-based-views
Django passing variables to templates from class based views

If I have a class based view, like this, class SomeView (View): response_template='some_template.html' var1 = 0 var2 = 1 def …

django class django-templates django-views django-class-based-views
Django Call Class based view from another class based view

i am trying to call a class based view and i am able to do it, but for some reason …

python django django-class-based-views
'QuerySet' object has no attribute '_meta'

i am developing a simple app with python django framework and i am using Class based Views, when i use …

python django-views django-class-based-views
Django, name parameter in urlpatterns

I'm following a tutorial where my urlpatterns are: urlpatterns = patterns('', url(r'^passwords/$', PasswordListView.as_view(), name='passwords_…

python django django-class-based-views urlconf url-pattern
Accessing request.user in class based generic view CreateView in order to set FK field in Django

So I have a model that includes: class Place(models.Model): .... created_by = models.ForeignKey(User) My view is like …

django django-generic-views django-class-based-views
Django: ListView with post() method?

I am trying to process two forms in a Django class based view. The site contains a form called form (…

python django formview django-class-based-views class-based-views
Updating User model in Django with class based UpdateView

I am trying to update the Django User model with the class based UpdateView that automatically renders with the current …

django django-forms django-class-based-views
How to set ForeignKey in CreateView?

I have a model: class Article(models.Model): text = models.CharField() author = models.ForeignKey(User) How do I write class-based …

python django django-class-based-views
Overriding get_queryset() in a Django DetailView

I have two models, City and State with State being a ForeignKey relation of City.My CityDetailView url is constructed …

django-views django-class-based-views