#2571: SyntaxError working through "writing 1st django app pt 1" tutorial
----------------------------+-----------------------------------------------
 Reporter:  since1968       |       Owner:  adrian
     Type:  defect          |      Status:  new   
 Priority:  normal          |   Milestone:        
Component:  Core framework  |     Version:  SVN   
 Severity:  normal          |    Keywords:        
----------------------------+-----------------------------------------------
 Working through the tutorial
 (http://www.djangoproject.com/documentation/tutorial1/) I get a syntax
 error when I run the following line: python manage.py sql polls. I named
 the project "tutorial" instead of "mysite" but other than that everything
 is the same. I copied and pasted the model code.
 
 I'm using the development version downloaded from svn. I'm on OS X and my
 database is MySQL. The error message, in full:
 
 towy:~/sites/django/tutorial marc$ python manage.py sql polls
 Traceback (most recent call last):
   File "manage.py", line 11, in ?
     execute_manager(settings)
   File "/usr/local/lib/python2.4/site-packages/django/core/management.py",
 line 1343, in execute_manager
     execute_from_command_line(action_mapping, argv)
   File "/usr/local/lib/python2.4/site-packages/django/core/management.py",
 line 1294, in execute_from_command_line
     mod_list = [models.get_app(app_label) for app_label in args[1:]]
   File "/usr/local/lib/python2.4/site-
 packages/django/db/models/loading.py", line 40, in get_app
     mod = load_app(app_name)
   File "/usr/local/lib/python2.4/site-
 packages/django/db/models/loading.py", line 51, in load_app
     mod = __import__(app_name, '', '', ['models'])
   File "/Users/marc/Sites/django/tutorial/../tutorial/polls/models.py",
 line 10
     votes models.IntegerField()
                ^
 SyntaxError: invalid syntax

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2571>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@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-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to