On 27/01/2011 12:02pm, Casual Coder wrote:
I'd like to get handy with using the console.   Do I have a setup
problem or a usage problem?


>>> from django import VERSION
>>> VERSION
(1, 3, 0, 'alpha', 1)
>>>



See following pydev console output.   Am I not able to run
get_version() like that?

Thanks...

import sys; print('%s %s' % (sys.executable or sys.platform, sys.version))
C:\Python25\python.exe 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC
v.1310 32 bit (Intel)]
sys.path
['C:\\Program Files\\eclipse\\plugins\
\org.python.pydev_1.5.7.2010050621\\PySrc', 'C:\\Program Files\\Google\
\google_appengine', 'C:\\Python25\\lib\\site-packages', 'C:\\Python25\
\lib\\site-packages\\PIL', 'C:\\ca1\\lib\\antlr3', 'C:\\Python25', 'C:\
\ca1\\lib\\webob', 'C:\\Python25\\lib\\plat-win', 'C:\\Python25\\lib',
'C:\\ca1\\lib\\ipaddr', 'C:\\ca1\\lib\\django', 'C:\\ca1\\lib\\django\
\django', 'C:\\ca1\\src', 'C:\\Python25\\DLLs', 'C:\\ca1\\lib\
\cacerts', 'C:\\ca1\\lib\\yaml\\lib', 'C:\\Python25\\lib\\lib-tk', 'C:\
\WINDOWS\\system32\\python25.zip']
from django import VERSION
get_version()
Traceback (most recent call last):
   File "<console>", line 1, in<module>
NameError: name 'get_version' is not defined
print 'darn'
darn



--
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to