Ok. just by testing it over and over i figured out what the problem
was.

The problem was, that you could not use 'pass' in context processor.

If i did it like this:
loginform(request):
        if request.user.is_authenticated():
                return {}
        else:
                from django.contrib.auth.forms import AuthenticationForm
                from jalka.game.forms import UserCreationForm
                authform = AuthenticationForm()
                regform = UserCreationForm()
                return { 'authform':authform, 'regform':regform }

It worked just fine

Alan.

On Jun 6, 10:40 am, zayatzz <alan.kesselm...@gmail.com> wrote:
> I have been trying to track down this issue and here is what i found.
>
> I created new project. Its settings are like this:http://pastebin.com/CyiGv3nk
>
> If the line       #"jalka.context.loginform" is commented out, i can
> go to admin just fine.
>
> I i comment it in. i gethttp://pastebin.com/A1mzRqFG
>
> context of the loginform are:http://pastebin.com/gShhLeM8
>
> I commented everything out just to check if it changes anything. It
> didnt.
>
> Could someone please explain, what am i doing wrong?
>
> Alan
>
> On May 26, 11:49 pm, zayatzz <alan.kesselm...@gmail.com> wrote:
>
>
>
> > On May 26, 10:26 pm, Karen Tracey <kmtra...@gmail.com> wrote:
>
> > > On Wed, May 26, 2010 at 12:13 PM, zayatzz <alan.kesselm...@gmail.com> 
> > > wrote:
> > > > Hello
>
> > > > I created new project, added bunch of apps (which are required for
> > > > django cms 2.0) and when i proceeded to admin, to create first set of
> > > > pages i got this error:
>
> > > >http://pastebin.com/ZYKuuz85
>
> > > > I also mentioned it in django cms 2.0 group here :http://
> > > > groups.google.com/group/django-cms/browse_thread/thread/
> > > > 4bb7b51fcdad09f8
>
> > > > Can anyone take a guess how i could fix this?
>
> > > Please, when you are going to cut and paste a traceback somewhere, first
> > > click the link to switch to copy-and-paste view. It's extremely difficult 
> > > to
> > > read the non-copy-and-paste-view version when it's been copy-and-pasted. 
> > > You
> > > don't give many details of what you've done, exactly, but the traceback
> > > seems to indicate the admin views have been wrapped in a cache decorator,
> > > and that is causing a problem. What have you specified for your admin
> > > urlpattern(s), exactly?
>
> > i just uncommented the line that already existed in urls.py
>
> > Alan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to