On Jun 6, 7:43 pm, bvcelari <[email protected]> wrote: > Hy, I´m quite newbie using MacOSX, had installed python, and django, > if in a python console "import python" no error appears, but if i try > to create a new project like > " ./bin/django-admin.py startproject sdlsdl " the next error appears: > > Traceback (most recent call last): > File "./bin/django-admin.py", line 2, in ? > from django.core import management > File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ > python2.3/site-packages/django/core/management/__init__.py", line 7, > in ? > from django.core.management.base import BaseCommand, CommandError, > handle_default_options > File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ > python2.3/site-packages/django/core/management/base.py", line 13, in ? > from django.core.management.color import color_style > File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ > python2.3/site-packages/django/core/management/color.py", line 8, in ? > from django.utils import termcolors > File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ > python2.3/site-packages/django/utils/termcolors.py", line 185 > opts = tuple(s for s in styles if s in opt_dict.keys()) > ^ > SyntaxError: invalid syntax > > anyone knows how to fix it? > > thx, > bvcelari.
The latest version of Django (1.2) is not compatible with Python 2.3. Download 1.1 instead. Or, better, upgrade your version of Python - or even OS X. I presume you are running OS X Panther, which is now over 7 years old. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

