Thanks...it worked.

-----Original Message-----
From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com]
On Behalf Of Daniel Roseman
Sent: Monday, October 26, 2009 7:01 PM
To: Django users
Subject: Re: syntax error what am i doing wrong???


On Oct 26, 10:35 pm, "jon...@cox.net" <jon...@cox.net> wrote:
> SyntaxError at /
>
> ('invalid syntax', ('c:\\Users\\Vincent\\Documents\\django_bookmarks\
> \..\\django_bookmarks\\bookmarks\\views.py', 15, 20, 'return Http
> Response(output)\n'))
>
> SCRIPT FROM VIEWS.PY
>
> from django.http import HttpResponse
> def main_page(request) :
>    output = '''
>   <html>
>      <head><title>%s</title></head>
>      <body>
>         <h1>%s</h1><p>%s</p>
>      </body>
>   </html>
> ''' % (
>       'Django Bookmarks',
>       'Welcome to Django Bookmarks',
>       'Where you can store and share bookmarks!'
> )
> return HttpResponse(output)

Looks like your final line is not properly indented - should be lined
up with 'output', not 'def'.
--
DR.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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