The template seems fine. we need to see the view controller code.
-
Cheers,
def AlonCarmel(request)
import simplejson as json
contact = {}
contant['email'] = '[email protected]'
contact['twitter'] = '@aloncarmel'
contact['web'] = 'http://aloncarmel.me'
contact['phone'] = '+972-54-4860380'
return HttpResponse(json.dumps(contact))
* If you received an unsolicited email from by mistake that wasn't of your
matter please delete immediately. All E-mail sent from Alon Carmel is
copyrighted to Alon Carmel 2008. Any details revealed in e-mails sent by
Alon Carmel are owned by the Author only. Any attempt to duplicate or
imitate any of the Content is prohibited under copyright law 2008.
On Tue, Jul 27, 2010 at 2:34 AM, Virender <[email protected]> wrote:
> Hi I am following the python tutorial. Everything was fine until I
> created the template.
> Here is my index.html file
>
> <html>
> <body>
> {% for greeting in greetings %}
> {% if greeting.author %}
> <b>{{ greeting.author.nickname }}</b> wrote:
> {% else %}
> An anonymous person wrote:
> {% endif %}
> <blockquote>{{ greeting.content|escape }}</blockquote>
> {% endfor %}
>
> <form action="/sign" method="post">
> <div><textarea name="content" rows="3" cols="60"></textarea></
> div>
> <div><input type="submit" value="Sign Guestbook"></div>
> </form>
>
> <a href="{{ url }}">{{ url_linktext }}</a>
>
> </body>
> </html>
>
> http://localhost:8081/ displays this (what am I doing wrong?)
>
> <html>
> <body>
>
>
> <form action="/sign" method="post">
> <div><textarea name="content" rows="3" cols="60"></textarea></
> div>
> <div><input type="submit" value="Sign Guestbook"></div>
> </form>
>
> <a href="/_ah/login?continue=http%3A//localhost%3A8081/">Login</a>
>
> </body>
> </html>
>
> thanks,
> Virender
>
> --
> 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]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
--
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.