Using Python on Aptana


I am trying to use a program called Aptana to do some programming in Python. I am trying to do a simple import and keep getting problems

I get this error from the code below

Traceback (most recent call last):
File "C:\Users\Trevor Dammon\Documents\Aptana Studio 3 Workspace\new\", line 6, in
NameError: name 'today' is not defined

I really don't know what's going on please help!

from datetime import date



The code needs to be:

import datetime


Can you explain why I no longer need to use

frome datetime import datetime


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.