After resolving the URLConf problem, I wrote some views without
templates to make sure that I had the syntax right. When I tried to
visit localhost:8000/styles/css/classic-b-and-w/ again, I recieved the
error "SyntaxError at /styles/css/classic-b-and-w/ - invalid syntax
(views.py, line 12)". The lines in question are (from the
aforementioned views.py):

(12) def test_page(request, stylename):
(13)    ow_my_style = get_object_or_404(Style, Slug=stylename)
(14)    return render_to_response('templates/testpage.html', {title:
ow_my_style.Style_Name, slug: ow_my_style.Slug,
author:ow_my_style.Author})

I don't see why Python has a problem with it, because it passed a
nearly identical line (line 8):

(8) def css_generate(request, stylename):
(9)    you_cant_handle_my_style = get_object_or_404(Style,
Slug=stylename)
(10)    return render_to_response('templates/genstyle.css', {style:
you_cant_handle_my_style}

This one has me really confused. Does anyone know what could have
happened here?

Regards,
Leaf
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to