Code

Opened 6 years ago

Closed 6 years ago

#7644 closed (invalid)

SyntaxError in management.py

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

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.

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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).

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.