So i got it django up and running on my mac and am totally excited to
get started, i got a bit into the tutorial when i  got to the point
where it asked me to add the __unicode__ method to my model. When i
add it to my model and try to use the shell i get this error. If you
anyone can help me with this it would be great, im really excited to
keep learning.

ps. different subject, can anyone recommend a good noob python book.
(i know general concepts of programming and messed with ruby for a
bit, but want to jump into python.)

Traceback (most recent call last):
  File "manage.py", line 11, in ?
    execute_manager(settings)
  File "/opt/local/lib/python2.4/site-packages/django/core/management/
__init__.py", line 272, in execute_manager
    utility.execute()
  File "/opt/local/lib/python2.4/site-packages/django/core/management/
__init__.py", line 219, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/local/lib/python2.4/site-packages/django/core/management/
base.py", line 72, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/opt/local/lib/python2.4/site-packages/django/core/management/
base.py", line 86, in execute
    output = self.handle(*args, **options)
  File "/opt/local/lib/python2.4/site-packages/django/core/management/
base.py", line 168, in handle
    return self.handle_noargs(**options)
  File "/opt/local/lib/python2.4/site-packages/django/core/management/
commands/shell.py", line 18, in handle_noargs
    loaded_models = get_models()
  File "/opt/local/lib/python2.4/site-packages/django/db/models/
loading.py", line 134, in get_models
    self._populate()
  File "/opt/local/lib/python2.4/site-packages/django/db/models/
loading.py", line 55, in _populate
    self.load_app(app_name, True)
  File "/opt/local/lib/python2.4/site-packages/django/db/models/
loading.py", line 70, in load_app
    mod = __import__(app_name, {}, {}, ['models'])
  File "/Users/jasoncalleiro/dev/mysite/../mysite/polls/models.py",
line 6
    def __unicode__(self):
    ^
SyntaxError: invalid syntax
--~--~---------~--~----~------------~-------~--~----~
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