paulbarry, on 29 August 2012 - 12:03 AM, said:
It sounds like you are missing some of the files (although you can generally forget about about the favicon.ico file, as it's optional).
Here's something to try: download the code from the headfirstlabs.com website for the chapter you are working on, and get it to run. Then compare the downloaded code with your code to see what's missing.
Hope this helps.
Thanks for your reply. I must say u've written a great book. I, as a user, love it.
For the problem above, i was able to solve it by myself. I'm confused about directories and the accordance of how programs read files in particular locations in them.
For example :- In chapter 8 - when u transfer the python script to the emulator via tools/adb push command.....the file to be transferred (lets say mydroidtest.py) has to be in the tools folder itself. So i have to copy it there and then execute the given command and then delete it from there. Is there a better way?????
Another example :- In chapter 7 - Following the webapp directory structure , when i try to execute a program in the cgi-bin folder in IDLE (lets say the program which includes include_header and include_footer commands to be exectuted) then the output gives an error saying "No such file or Directory: templates/header.html". Then i paste the templates folder in the cgi-bin folder , run the program and now IDLE gives no such error and the program is executed fine. But when the whole webapp runs there's no problem with the webapp directory structure given by you. Can You Please explain this to me as my previous problem was also due to confusion in understanding directories????????????