Opened 16 years ago

Closed 16 years ago

#7644 closed (invalid)

SyntaxError in management.py

Reported by: VaidyaR Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,
I am a completely new Django user, and I was basically following the tutorial (http://www.djangoproject.com/documentation/tutorial01/) to try and create a Django app. I basically ran "python manage.py runserver" from the command line, and it gives me the following error:

C:\Documents and Settings\Ganesh\My Documents\Django Files\mysite>python manage.
py runserver
c:\Django-0.96.2\django\core\management.py:830: Warning: 'yield' will become a r
eserved keyword in the future
Traceback (most recent call last):

File "manage.py", line 2, in ?

from django.core.management import execute_manager

File "c:\Django-0.96.2\django\core\management.py", line 830

yield "# This is an auto-generated Django model module."


SyntaxError: invalid syntax

Any help would be much appreciated, as am totally lost - thanks! I am running Django 0.96.2 on Python 2.5 on Windows XP.

Change History (1)

comment:1 by Malcolm Tredinnick, 16 years ago

Resolution: invalid
Status: newclosed

Please ask support questions on the django-users mailing list. The code you're running has been known to work for a long time (although looking at the error message, it looks like you're not running python 2.5, but something like python 2.1 or 2.2 -- check that before posting to django-users to make sure).

Note: See TracTickets for help on using tickets.
Back to Top