Tag Archive | "Django"

How to Delete an Index in an AppEngine Datastore

Sunday, April 18, 2010

Comments Off on How to Delete an Index in an AppEngine Datastore

If using Python, you can delete an index by first removing the entry in your index.yaml file, and then updating your site. Then you must issue this command: appcfg.py vacuum_indexes myapp/ With Django (what I am using), you use this command: manage.py vacuum_indexes What is nice about the process is that, for each index that […]

Continue reading...

Google AppEngine: appcfg.py update check failed

Tuesday, April 13, 2010

Comments Off on Google AppEngine: appcfg.py update check failed

I started getting this error in Windows when running ‘manage runserver’ in django on Google AppEngine: appcfg.py update check failed: EOF occurred in violation of protocol This error is related to not having the SSL module for python installed. The easy fix is to install it by running “easy_install ssl” from the command prompt. However, […]

Continue reading...

Testing Email Locally with AppEngine Patch on Windows

Friday, March 5, 2010

Comments Off on Testing Email Locally with AppEngine Patch on Windows

If you need to get email working on your windows dev machine for Google AppEngine, here is one method: Download Fake Sendmail for Windows. Unzip the files and copy them into a new folder. Add this new folder to your windows PATH, by right clicking on My Computer -> Properties. Click Advanced Tab -> Environmental […]

Continue reading...

Shopper Talk Goes Live

Sunday, December 6, 2009

Comments Off on Shopper Talk Goes Live

My latest project for Twitter. Try it out! http://shoppertalk.appspot.com It’s unbreakable. Ok, that’s not true, but I do need some testers. It’s a Django app running on Google App Engine. It utilizes the Twitter api and their OAuth implementation (so you can log in with your Twitter account). Currently only the Amazon product catalog is […]

Continue reading...

UrlEncode in Python

Tuesday, November 3, 2009

2 Comments

To urlencode a querystring or form data in python you can use the urllib module: use urllib # you have to pass in a dictionary print urllib.urlencode({'id':'100', 'name':'john smith'}) # then you get 'id=100&name=john+smith' Urlencoding Unicode and UTF8 Values #this works fine print urllib.urlencode({name:'José'}) #you have to be careful with unicode strings # this will […]

Continue reading...