I'm using the Google User API temporarily for the moment, but I want
to replace it with a custom auth. Thanks for pointing me to the Django
auth module, I'll check it out!

On Sep 4, 12:08 pm, "Bobby Moretti" <[EMAIL PROTECTED]> wrote:
> Hi Alex,
>
> I really like Django, so I'm using that for everything in this project.
>
> I'm also working on a different project with some other people, where
> pretty much everything is done in Django *except* for the
> authentication, where we use the app engine's api. So it's possible to
> roll your own auth if you're so inclined.
>
> -Bobby
>
> On Wed, Sep 3, 2008 at 5:32 PM, Alexander Kojevnikov
>
>
>
> <[EMAIL PROTECTED]> wrote:
>
> > Bobby,
>
> > 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]
>
> --
> 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