[BangPypers] Django Jquey List View issu

JAGANADH G jaganadhg at gmail.com
Tue Feb 19 09:21:27 CET 2013


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


More information about the BangPypers mailing list