[BangPypers] Django Jquey List View issu

ragsagar ragsagar at gmail.com
Tue Feb 19 09:42:29 CET 2013


Refer the following link for the usage of reverse(). You need pass the url
name, not template name.

https://docs.djangoproject.com/en/dev/topics/http/urls/#reverse-resolution-of-urls


On Tue, Feb 19, 2013 at 1:51 PM, JAGANADH G <jaganadhg at gmail.com> wrote:

> On Tue, Feb 19, 2013 at 12:40 PM, ragsagar <ragsagar at gmail.com> wrote:
>
> > It would have better if you have shared the code using dpase or some
> > pastebin, because it not that readable here. I am assuming your problem
> is
> > this. After login, the index.html page is rendering but you cannot the
> see
> > the list of items. If this is the problem do the following.
> > 1) Get the url name of the url which is mapped to the view which renders
> > index.html.
> > 2) if 'render_index_page' is the url name, do the following.
> >
> > if user is not None and user.is_active:
> >     login(request, user)
> >     return HttpResponseRedirect(reverse('render_index_page'))
> > else:
> >     # Not logged
> >
> > Then you don't have to set username in cookie or pass it to template like
> > that. You can access username like this without passing anything in
> > template if user is logged in.
> > {{ user.username }}
> >
> >
> > Hi
>
> Here is the code in dpaste
>
> http://dpaste.com/947018/
> Error Reverse for 'Index.html' with arguments '()' and keyword arguments
> '{}' not found
>
> --
> **********************************
> JAGANADH G
> http://jaganadhg.in
> *ILUGCBE*
> http://ilugcbe.org.in
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>



-- 
blog : ragsagar.wordpress.com
mail id : python -c "print '@'.join(['ragsagar','.'.join([x for x in
['gmail','com']])])"


More information about the BangPypers mailing list