2009/10/26 jon...@cox.net <jon...@cox.net>:
>
> 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)
>
> >
>

At first sight: you need triple quote string not single.

-- 
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net

--~--~---------~--~----~------------~-------~--~----~
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