I don't thing it's necessary to modify sys.path.append('../..'), as all it
does is add a relative directory to your python path and would leave this
alone.On Fri, Aug 13, 2010 at 8:00 PM, 陳昆宏 <[email protected]> wrote: > Oh, you have completely solved my question. No wonder I can't find where > the school data has been built in . > I misunderstood that information is obtained through the Internet. > > Thanks very much!!! > > And can I ask another question? > > sys.path.append('../..') -----> the code in location_geocell_migration.py > and other files. > > My question is the path of ('../..') , what dose that mean? > Or I should replace it with another path. > > Besides, sys.path.append('C:\\Program Files\\Google\\google_appengine') in > the remote_client.py, dose the path I have added is true? where the > 'C:\\Program Files\\Google\\google_appengine' is the path installed GAE SDK > on my computer. > > Thanks!!! > > 2010/8/14 Malcolm MacKinnon <[email protected]> > >> A couple of questions I have are: >> >> 1) Are you searching (inputing) a school or a location, like Los Angeles, >> to query for schools. In the pubschools demo, you search by location, not >> for a school. >> 2) Have you geocoded your school addresses in the appengine data store? >> You need to do this first, and here's a good tool to use: >> http://code.google.com/p/geopy/ >> >> Read the GettingStarted section. >> >> Using the above tool, you can write a python script to put your lat, lng >> values in the datastore . Read this, and it will show you how. >> >> http://pypi.python.org/pypi/geomodel >> >> I assume your geomodel looks like this: >> >> class PublicSchool(GeoModel): >> >> >> """A location-aware model for public school entities. >> >> """ >> school_id = db.StringProperty() >> >> >> name = db.StringProperty() >> >> >> address = db.StringProperty() >> >> >> city = db.StringProperty() >> >> >> state = db.StringProperty() >> >> >> zip_code = db.IntegerProperty() >> >> >> enrollment = db.IntegerProperty() >> >> >> phone_number = db.StringProperty() >> >> >> locale_code = db.IntegerProperty() >> >> >> school_type = db.IntegerProperty() >> >> >> school_level = db.IntegerProperty() >> >> >> grades_taught = db.ListProperty(int) >> >> >> Geocoding the address and putting the values in the datastore will add two >> fields to the GeoModel above, >> >> 1) location >> 2) location_geocells >> >> Then, if you query a particular location, like Los Angeles, and you have >> put public schools with a Los Angeles address in the appengine datastore, >> the markers should appear on your map. >> >> I hope this helps. >> >> >> >> On Fri, Aug 13, 2010 at 9:01 AM, 昆宏 陳 <[email protected]> wrote: >> >>> Hello, everybody. I have some trouble in the pubschools demo >>> application. >>> My question is that I have used the code of the pubschools demo,but >>> when i finished it. >>> I test it on website of http://localhost:8080. It looks everything is >>> ok. >>> But when i input a school name to find the schools near it, it can't >>> find the data. >>> It always in searching mode. I wonder to know what happened to it, >>> the code I use is the same as the code offered on this website:http:// >>> code.google.com/p/geomodel/source/browse/#svn/trunk/demos/pubschools >>> %3Fstate%3Dclosed<http://code.google.com/p/geomodel/source/browse/#svn/trunk/demos/pubschools%3Fstate%3Dclosed> >>> >>> And looking my app at:(http://littleinsect123.appspot.com/) if you >>> don't understand what i mean. >>> >>> If you can solve my question, I will be very happy. This question has >>> bothered me for many days. >>> >>> Thanks!!! >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google App Engine" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<google-appengine%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/google-appengine?hl=en. >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<google-appengine%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-appengine?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
