NameError: global name 'Response' is not defined

L

Lalit

Hi

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
Response('<p>firstapp default</p>')"

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

Thanks
Lalit
 
D

Diez B. Roggisch

Lalit said:
Hi

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
Response('<p>firstapp default</p>')"

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

Better ask such questions on the Pylons mailing list. Not that it is
inappropriate here - but you will receive better answers because it is
more specialized.

Anyway, I doubt you miss a package - I'd rather guess you miss an
import-statement.

Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top