Bobby,

A bit off-topic, do you use Django or webapp for your project? I'm
looking for an authentication helper for mine but don't want to switch
to Django just because of it, webapp is more than enough for my needs.

Thanks,
Alex

On Sep 4, 10:34 am, "Bobby Moretti" <[EMAIL PROTECTED]> wrote:
> Well, after about two days of debugging, I was able to figure out the
> following hack:
>
> In main.py, I added the lines
>
> from django.template import add_to_builtins
> add_to_builtins('appengine_django.auth')
>
> after running InstallAppengineHelperForDjango().
>
> This seems to do the trick, but it shouldn't be necessary. Any idea
> what I've been doing wrong?
>
> Thanks,
>
> -Bobby
>
>
>
> On Wed, Sep 3, 2008 at 12:05 AM, Bobby Moretti <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > I'm using appengine_django.auth for an app I'm working on. In order to
> > set up user authentication, I followed the documentation found here:
>
> >http://www.pragmaquest.com/tutorials/django-user-authentication-googl...
>
> > Everything works find using the SDK's dev server. However, when it's
> > uploaded to appspot, I get an error page with
>
> > Exception Type: TemplateSyntaxError at /skills/
> > Exception Value: Invalid block tag: 'auth_login_url'
>
> > Clearly, the template tags auth_login_url and auth_logout_url are not
> > getting registered, but I'm not sure why. The relevant portion of my
> > template is:
>
> >        {% if user.is_authenticated %}
> >          <a href="{% auth_login_url /skills/profile/ %}">Sign in</a>
> >        {% else %}
> >          <a href="{% auth_logout_url /skills/ %}">Sign out</a>
> >        {% endif %}
>
> > The code in app engine helper that seems relevant is here:
>
> >http://code.google.com/p/google-app-engine-django/source/browse/trunk...
>
> > I'm really stumped here, and would appreciate any advice.
>
> > Thanks,
>
> > -Bobby
>
> --
> Bobby Moretti
> [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to