NameError: global name 'Response' is not defined
bskaplan14 at yahoo.com
Thu Apr 24 21:24:43 CEST 2008
Are you importing pylons? How are you doing it? If you are doing "from pylons import Response" or "from pylons import *", then you have another problem. If you are just doing "import pylons", then you need to do "return pylons.Response(...)"
----- Original Message ----
From: Lalit <lalitkrishna at gmail.com>
To: python-list at python.org
Sent: Thursday, April 24, 2008 10:27:36 AM
Subject: NameError: global name 'Response' is not defined
I am very new to web development. I started with Pylons. I am using
http://www.rexx.com/~dkuhlman/pylons_quick_site.html as reference to
create a sample web page using pylons.
I got stuck up at step 4.3 i.e when modifying controller to "return
I am getting error of <type 'exceptions.NameError'>: global name
'Response' is not defined
It seems I am missing some package. I am not really sure. I installed
python 2.5 and through easy_install imported pakages (pylons).
Any clues would be appreciated
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list