bbagger
Joined: Sat Apr 11, 2009 7:15 pm Posts: 12
|
Posted: Mon Dec 17, 2012 9:13 am Post subject: [SOLVED]Syntax error in Django tutorial (LXF #165) |
|
|
When I try to create the view described on page 82 in the tutorial I get this error message:
| Code: | SyntaxError at /inventory
invalid syntax (views.py, line 7)
Request Method: GET
Request URL: http://127.0.0.1:8000/inventory
Django Version: 1.4.3
Exception Type: SyntaxError
Exception Value:
invalid syntax (views.py, line 7)
Exception Location: /usr/lib/python2.7/site-packages/django/utils/importlib.py in import_module, line 35
Python Executable: /usr/bin/python2
Python Version: 2.7.3
Python Path:
['/home/bent/pawnstore',
'/usr/lib/python27.zip',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/lib/python2.7/site-packages',
'/usr/lib/python2.7/site-packages/PIL',
'/usr/lib/python2.7/site-packages/gst-0.10',
'/usr/lib/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode']
Server time: Mon, 17 Dec 2012 03:03:31 -0600 |
Line 7 of views.py is:
| Code: | | return render_to_response('inventory/index/html': {'latest_item_list': latest_item_list}) |
I have tried several alternatives within my limited Python knowledge, but have had no luck so far.
What have I done wrong?
Bent
Last edited by bbagger on Thu Feb 21, 2013 8:53 pm; edited 1 time in total |
|