Re: Class Views Questions

2011-10-09 Thread CrabbyPete
Thanks, That helped me understand generic views much better. I'm using mongoengine and also found this set of tools which uses class views https://github.com/wpjunior/django-mongotools On Oct 8, 11:08 am, Flavia Missi wrote: > Hi, > > There's a mixin that does exactly what y

Re: Class Views Questions

2011-10-08 Thread Flavia Missi
/urls/#what-the-urlconf-searches-against Just for the record, there's a generic class view, called DeleteView, that you should use, but as a different view. Hope that helps. ;) []'s On Sat, Oct 8, 2011 at 11:12 AM, CrabbyPete wrote: > I am fooling around with django generic class

Re: Class Views Questions

2011-10-08 Thread Xavier Ordoquy
Le 8 oct. 2011 à 16:12, CrabbyPete a écrit : > I am fooling around with django generic class views, and I was > wondering if its possible to actually build class views per item for > example I have the following class view. > > > class TeamView( View, Tem

Class Views Questions

2011-10-08 Thread CrabbyPete
I am fooling around with django generic class views, and I was wondering if its possible to actually build class views per item for example I have the following class view. class TeamView( View, TemplateResponseMixin ): template_name = 'team.html' def get(self, request):

Re: Class Views

2011-10-06 Thread Vijay Khemlani
It should be "render_to_response", not "render_to_reponse", a spelling problem maybe? On Thu, Oct 6, 2011 at 12:53 PM, CrabbyPete wrote: > I have the following class defined > > class TeamView(TemplateResponseMixin, View): >template_name = 'team.html' > >def get(self, request): >

Class Views

2011-10-06 Thread CrabbyPete
I have the following class defined class TeamView(TemplateResponseMixin, View): template_name = 'team.html' def get(self, request): if 'team' in request.GET: team = Team.objects.get(id = request.GET['team']) form = TeamForm( ) else: tea

making a search page using generic class views

2011-07-26 Thread akonsu
hello, I am trying to migrate my function based views to class based ones. I have a search page with a form (which is represented by MySearchForm class). The form's action URL is set to the current page (). When the form is submitted the search results are shown in the page below the form. in othe