I have two models, City and State with State being a ForeignKey relation of City.My CityDetailView url is constructed as:
I\'d like to use the class based generic views of django 1.3 for forms, but sometimes have to manage multiple form classes in one form. However, it looks like the existing views based on FormMixin ass
I\'m using the generic CreateView like: #urls.py from django.conf.urls.defaults import * from django.views.generic import CreateView
I am trying to update the Django User model with the class based UpdateView that automatically renders with the current user but am getting an error that a pk or slug is required. The form work and re
With function based Django view it was simple to switch between several different views based on a condition, e.g. something like:
I\'m having a bit of trouble understanding how the new CBVs work. My question is this, I need to require login in all the views, and in some of them, specific permissions. In function-based views I do
I\'m currently learning how to use the class-based views in django 1.3. I\'m trying to update an application to use them, but I still don\'t uderstand very well how they work (and I read the entire cl
I\'m new to django. And now I\'m studying using the class-based generic views. Could someone plea开发者_运维技巧se explain the aim and use of context_object_name attribute?If you do not provide \"cont
I\'m currently trying to migrate my function based views for the new django 1.3 class-based views. To start, I changed a simple RedirectView I had, but I cant get it to work, even worst, I can\'t unde
C开发者_Go百科ould someone please help with reg/auth/auth using class-based generic views? It is clear how to do this with function-based views, but not with classes. Cannot understand the philosophy