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
/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
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
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):
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):
>
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
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
7 matches
Mail list logo