[google-appengine] GAE max recursion depth exceeded error [Python]
Hi folks. All of a sudden, i started to experience this error of MAximum Recursion dept exceeded. I tried reinstalling GAE, cleaning the datastore but still does not go away. I am on a Fedora 12, Python 2.6 machine. I have been using this same setup for like an year now. Never faced this issue. The traceback is so long I had to use google docs to share it. Here is the link https://docs.google.com/document/d/1kc6tgLqHUDC9jOK3gLPlwn10yN_N8Nj6pJjiNPZhj4s/edit?hl=en any information would be of great help -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] is db.get is faster than Model.get_by_key_name ?
Is db.get() faster than Model.get_by_key_name()? Currently we are using Model.get_by_key_name for querying over a Model. Sometimes it takes unacceptable time, but mostly it is good enough. The Model has fewer than four attributes, all text. There is a lot of data that is stored using this model and it is being read too often (more than 15 ~20 reqs per second), However the write rate is quite less ( less than 1 req per second). Current steps :- 1. We create the keyname (One string addition operation) 2. We use Model.get_by_key_name Proposed steps :- 1. We create the keyname (One string addition) 2. We get the key from that keyname and the Model class, using Key.from_path() 3. We use db.get() and fetch the result. Correct me if i am wrong, but I think internally it goes via db.get() only and Model.get_by_key_name is an abstraction for that. So using db.get() will be faster and cheaper than Model.get_by_key_name. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Stop a nuclear disaster
Hi Google App Engine,Our government is churning out one hazardous bill after another. This time it is a bill called the Civil Liability for Nuclear Damage, and it's coming up for a vote in a couple of days. The bill lets U.S. corporations off the hook for any nuclear accidents they cause on Indian soil. They'd only have to pay a meagre amount, and Indian taxpayers would be stuck paying crores for the nuclear clean up and to compensate the victims. Without any public debate, the Prime Minister is appeasing American interests and ignoring our safety. Greenpeace is launching a petition asking the PM to hold a public consultation before introducing the bill. I have already signed this petition. Can you join me? http://www.greenpeace.org/india/stop-the-vote Thanks! pra...@gmail.com You are receiving this email because someone you know sent it to you from the Greenpeace site. Greenpeace retains no information about individuals contacted through its site, and will not send you further messages without your consent -- although your friends could, of course, send you another message. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Django form caching
i am observing a strange behavior in djangoforms. I am using the default django provided in latest AppEngine SDK. The datastore is updated by the entries i put, but when i view them in a form, the latest ones are not shown. It takes some time (approx 5 minutes) before the latest entries show up. Has any one faced this django form caching issue? What is the workaround? Any specific coding guidelines? -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Caching of dynamic images
Great, solved my issue too. Thanks !! On Dec 7, 10:39 pm, 风笑雪 wrote: > My script works > fine:http://keakon.appspot.com/image/agZrZWFrb25yDAsSBUltYWdlGOUSDA.jpeg > > self.response.headers['Content-Type'] = 'image/' + image.type > self.response.headers['Last-Modified'] = image.time and > image.time.strftime(GMT_FORMAT) or DEFAULT_LAST > self.response.headers['Expires']= EXPIRES > self.response.headers['Cache-Control'] = 'public, max-age=31536' > self.response.headers['Date'] = DATE > self.response.out.write(image.content) > > 2009/12/7 Pranny : > > > Per my experience, the production server also behaves the same > > > On Dec 7, 5:43 pm, 风笑雪 wrote: > >> You need test it on production sever, the develop server always sends > >> no cache header. > > >> 2009/12/7 Pranny : > > >> > One issue that i have faced while serving dynamic images is that > >> > images are not cached by default. So, every page reload or so, takes > >> > burden in fetching images. > >> > I tried to explicitly cache the images by setting headers as > > >> > self.response.headers['Content-Type'] = "image/png" > >> > self.response.headers['Cache-Control'] = "public, max-age=600" > >> > self.response.headers['Expires'] = "Thu, 15 Apr 2011 20:00:00 GMT" > >> > self.response.out.write(serve) > > >> > Here serve is the blob object that contains image. But this also seems > >> > not to be working. > > >> > Is this related somehow to the request header which goes on as > > >> > Cache-Control max-age=0 > > >> > How can i fix this. My application is supposed to be using a lot of > >> > images and its design is such that all images are served dynamically (/ > >> > img?id=XYZ). > > >> > -- > > >> > You received this message because you are subscribed to the Google > >> > Groups "Google App Engine" group. > >> > To post to this group, send email to google-appeng...@googlegroups.com. > >> > To unsubscribe from this group, send email to > >> > google-appengine+unsubscr...@googlegroups.com. > >> > For more options, visit this group > >> > athttp://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 google-appeng...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://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 google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Caching of dynamic images
Per my experience, the production server also behaves the same On Dec 7, 5:43 pm, 风笑雪 wrote: > You need test it on production sever, the develop server always sends > no cache header. > > 2009/12/7 Pranny : > > > One issue that i have faced while serving dynamic images is that > > images are not cached by default. So, every page reload or so, takes > > burden in fetching images. > > I tried to explicitly cache the images by setting headers as > > > self.response.headers['Content-Type'] = "image/png" > > self.response.headers['Cache-Control'] = "public, max-age=600" > > self.response.headers['Expires'] = "Thu, 15 Apr 2011 20:00:00 GMT" > > self.response.out.write(serve) > > > Here serve is the blob object that contains image. But this also seems > > not to be working. > > > Is this related somehow to the request header which goes on as > > > Cache-Control max-age=0 > > > How can i fix this. My application is supposed to be using a lot of > > images and its design is such that all images are served dynamically (/ > > img?id=XYZ). > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to google-appeng...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://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 google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Caching of dynamic images
One issue that i have faced while serving dynamic images is that images are not cached by default. So, every page reload or so, takes burden in fetching images. I tried to explicitly cache the images by setting headers as self.response.headers['Content-Type'] = "image/png" self.response.headers['Cache-Control'] = "public, max-age=600" self.response.headers['Expires'] = "Thu, 15 Apr 2011 20:00:00 GMT" self.response.out.write(serve) Here serve is the blob object that contains image. But this also seems not to be working. Is this related somehow to the request header which goes on as Cache-Control max-age=0 How can i fix this. My application is supposed to be using a lot of images and its design is such that all images are served dynamically (/ img?id=XYZ). -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] pranny invites you to SlideShare
Hi Google App Engine, pranny invited you to check out SlideShare with this message: ** I found this cool presentation and document sharing site. Check out some popular content at http://www.slideshare.net/most-favorited You can upload your own presentations and documents. SlideShare hosts them for free. You can make it private or make it public and get lots of traffic. ** Here is your invitation. If the link doesn't work, please copy and paste the following into your browser address bar: http://www.slideshare.net/signup?from=email&type=send_invite_join_slideshare&subtype=signup Want to know more about SlideShare? Take the 1 minute tour: http://www.slideshare.net/tour Invite your friends Send feedback to SlideShare --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: How to access form input where type="File"
Your content will be stored in self.request.get('datafile'). Now use any XML parser On Jun 12, 8:29 am, Gaurav wrote: > Hi, > > I am using google app engine and i intend to read an XML file provided > by HTML. I saw the standard example on google app engine doc. I am > also using the HTML form and input type is File. So now I want to read > the attributes of XML which is browsed and submitted by HTML. Pls > help. > > self.response.out.write(""" > http://www.cs.tut.fi/cgi-bin/run/~jkorpela/ > echo.cgi" enctype="multipart/form-data" method="post"> > > > So the file which will be submitted as datafile will an XML and I want > to read it. > > Regards, > Gaurav Joshi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Performance: Datastore writes vs. logging writes
Speaking in terms of 'data mining' that you might be doing from the user's action logs, i would recommend data store writes ! -- Pranav Prakash On Jun 14, 9:28 pm, Henning wrote: > We want to collect usage statistics with our app. > Therefore, we want to track user actions somewhere on the server side. > > Which option is more suitable, performance-wise: > 1. Track user actions in the App Engine Log, i.e. write a log entry > each time. Evaluate the logs for usage statistics. > 2. Track user actions in a table in the Datastore. Write an entry for > each user action. Evaluate this table for usage statistics. > > I would guess, that log writes are much faster than Datastore writes. > What are your experiences and suggestions? > > Thanks: > Henning --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: image protection
Aah yea, great. Thanks :-) On Jun 11, 11:34 pm, Wooble wrote: > The traditional method is to check if the referer header is from > another domain and if it is, don't serve the image. > > On Jun 11, 12:57 pm, pranny wrote: > > > > > a few access checks > > > I would like to know what access checks ? > > > -- > > Pranav Prakash > > > "This life is more than ordinary" > > > On Jun 11, 1:32 pm, Barry Hunter wrote: > > > > not if you have defined the images as static in your app.yaml (or > > > similar in java) > > > > but if your images are served dynamically (using python/java) then you > > > can. > > > > static content is served from a different system to code and so you > > > get little control. but serving them off the code system you get > > > pretty much full control. > > > > you could write a small script (easiest in python) to act as a static > > > handler, that just reads the file from disk (any resource not declared > > > as static is readable on the code server) and does a few access checks > > > and returns approriate headers. > > > > On Jun 11, 4:03 am, chimpsbeware wrote: > > > > > Im using google app engine to store/serve my images for my site. For > > > > example I usehttp://static.mydomain.com/images/myimage.jpgtoshowmy > > > > images that i've uploaded here. > > > > > I would like to know if hotlink protection is possible on these > > > > images? is this at all possible? I would like for my pictures to be > > > > shown on my domain only. > > > > > I hope that someone can help me with this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: image protection
a few access checks I would like to know what access checks ? -- Pranav Prakash "This life is more than ordinary" On Jun 11, 1:32 pm, Barry Hunter wrote: > not if you have defined the images as static in your app.yaml (or > similar in java) > > but if your images are served dynamically (using python/java) then you > can. > > static content is served from a different system to code and so you > get little control. but serving them off the code system you get > pretty much full control. > > you could write a small script (easiest in python) to act as a static > handler, that just reads the file from disk (any resource not declared > as static is readable on the code server) and does a few access checks > and returns approriate headers. > > On Jun 11, 4:03 am, chimpsbeware wrote: > > > Im using google app engine to store/serve my images for my site. For > > example I usehttp://static.mydomain.com/images/myimage.jpgtoshow my > > images that i've uploaded here. > > > I would like to know if hotlink protection is possible on these > > images? is this at all possible? I would like for my pictures to be > > shown on my domain only. > > > I hope that someone can help me with this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Knowing which app belong to who
Hi, Because of unknown reasons, the app name can not be the name of any gmail user. So, say someone has an email like 'foo.bar[AT]gmail[DOT] com, then you can not create an app with the name foo.bar. So, in your case, i fear someone has the email id you are trying to register your app with. -- Pranav Prakash "This life is more than ordinary" On Jun 10, 8:02 am, Benjamin Sautner wrote: > this topic has come up before where just about every string of letters is > taken - i've entered in 20 garbage chars and got lucky, but a lot of people > have been saying a very unique name is taken. My apps are all made up words > and are taken. > > I've been entering a version number after my name since really, the users > would just see my domain url and the name is just for your use. > > Ben > > On Tue, Jun 9, 2009 at 9:38 PM, Thomas Wiradikusuma > wrote: > > > > > > > Hi guys, is there any way to see the owner's username of a certain app > > name? I wanted to register an app, say "foo", but discovered that it's > > already taken. I'm very much confident the name I picked is unique > > (it's in my local language and consisted of several words), but I've > > told some friends about it before registering and wonder who among > > them 'hijacked' the name. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Data Preload Script Equivalent?
Hey Kenny, I was a little confused what meant by 'Data Preload script', but i think i am clear now :-) Basically, you want to create dynamic stuff (forms, in our case) with as little typing and as high flexibility as possible. 1. use templates http://code.google.com/appengine/docs/python/gettingstarted/templates.html 2. use django form (validation) framework http://code.google.com/appengine/articles/djangoforms.html I hope these two urls are good enough to solve your problem. Revert back, for more clarifications :) -- Pranav Prakash "This life is more than ordinary" http://codecontrol.blogspot.com On Jun 9, 3:55 am, KennyCarlile wrote: > I'm pretty new to GAE, but I've searched around and have been unable > to find a solution to this problem, although it's quite possible that > I didn't ask the right question when searching. :o) > > When creating an application in PHP/MySQL, I would often write SQL > scripts to create the DB and permissions, create tables/stored procs/ > views, and then a script to prepopulate data, such as config values, > types, dropdown lists, etc. It's that last script I'm curious about. > > So say, for example, that I have a dropdown with usertype (for > creating new users) but I don't want that value hardcoded in the > template. I have values for "admin", "editor", and "contributor". (For > the sake of the argument, please disregard that this might be a bad > example.) Normally, I'd have a table called UserTypes and I'd create a > script to insert 3 values into that table. > > Here's the question: how would I do that in GAE? Remember, this > presumes that I don't want the values hardcoded in Python (in > handlers), HTML, and I don't want to have to create a form to enter > all these by hand. > > The only solution that I've come up with is to have an admin-section > page that preloads the database by first wiping the data from the > types that I want to load and then by manually creating 3 Python > objects and writing those to the DB. So in this case, I'm basically > using Python for my data preload script. This isn't how I want to do > this. I'd really like to just be able to have a script file with SQL > (err...GQL) to preload data into the datastore. Any thoughts on how I > could do this? > > Thanks for any help that anyone can offer. > > Kenny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Auditing mechanism using BigTable
Hi folks, I need some kind of auditing mechanism in my app. What i want is data storage on a 'time axis' too. I read that BigTable stores data in many dimensions, one of which is time. Is there some way we can use this feature of BigTable in our apps? If not, can someone suggest me an alternative, that is not so hungry in terms of datastore limits and quotas? -- Pranav Prakash "This life is more than ordinary" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Apps engine and google data centers abroad
Hi Lec, In my opinion what you want is localized pages, and not necessarily the .fr .cn and .in domains. Right? If this is the case, you can definitely use localization packages like babel and others. The best way is to ask the user on his first visit, language preference. And store it accordingly - cookies or datastore. Use this data and fetch the pages accordingly. This way, you don't need to know internal details of the data centers and other things, which otherwise Google won't be happy to disclose ;-) Cheers, Pranav Prakash "This life is more than ordinary" On May 21, 1:55 am, Lec wrote: > I would like to know if the apps engine applications developed on the > USA based apps engine ie; usa data center are mirrored all over the > world? Will the same app run in asia, europe, middle east, etc.? > > How do i localize access to that data center, does google route it > automatically or do i need to give it a hint? Does apps engine support > Unicode and localization for text strings? > > As example, if I have calculator.mydomain.com --> > calculator.appspot.com, from a website in usa just a link, from > > France it would be calculator.mydomain.com --> calculator.appspot.fr > HongKong it would be calculator.mydomain.com --> > calculator.appspot.hk > > We want the best performance possible from anywhere in the world, > perhaps have the app localized for language as well. I noticed when > abroad mail.google.com goes local to mail.google.com?lang=fr or > something like that, we can still tell it to use lang=en, but not sure > what happens behind the scenes. I do not think it travels to usa to > get the en localization, for apps is it the same? > > One last one; China :) I have huge problem of my lovely domain not > working from china 1/2 the time. It is being blocked because google > stuff is being blocked. So sites, nada, is there a chinese local > version of the data center we can setup which would prevent this. I > know it is beyond google's control. But my domain should not be > blocked just because it sits on google servers every time google, > youtube, what ever is blocked. So need a way around this problem, have > some ideas, would love to work with someone to implement them. You > know you also want to do business there. > > * if someone gives a detailed answer there is beer waiting for you > (from me) one nite after google IO next week. > > L --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Determine IP or Country of request..?
Hi, There are two cases in here 1. The Google Analytics way 2. The anonymous way In the GA way, you will providing the iframe source code to registered users. In the anonymous way, you will be providing the iframe source to an anonymous person. In the GA way, you can add a small javascript variable that is unique to the registered user, script is provided to. This is a method to track the person(s) who will be adding that iFrame to their site. Since, they are already registered, you have their location and other details. In the anonymous way, you can do the following - use the javascript to find out the hosting site. Say for ex: your code is pasted on http://codecontrol.blogspot.com so you can get this information. Later you can find out the geographical location of this particular site using third party services available Have a look at WebOb. http://pythonpaste.org/webob/reference.html#request-body It is what the webapp is build. So it can be used directly. -- Cheers, Pranav Prakash "This life is more than ordinary" On May 14, 10:51 pm, "astrid.thuec...@googlemail.com" wrote: > Hi, > > We offer HTML content generated with a appengine. People can embed > these via iframes in their website and visitors of their website see > them. > > My questions is, can I get information about: > > 1. the people embedding our iframes > 2. the visitors watching websites where our iframes are embedded > > Perhaps we could get something like a referer for the website that > embeds the iframe? > > Thanks, Astrid. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: use of Django's "forms.Form" on GAE
Neal, IIRC, cleaned_data is available only after you have used is_valid() method? Did you missed it out ? Check out http://docs.djangoproject.com/en/dev/topics/forms/#processing-the-data-from-a-form -- Cheers, Pranav Prakash "This life is more than ordinary" On May 13, 11:36 pm, Neal wrote: > I seemed to solved that problem by changing one import: > > from django import newforms as forms > > Now I'm trying to get a field from the form: > > TaskLog1.taskCode = form.cleaned_data['taskCode']; > > which is giving this error: #ProvisionForm' object has no attribute > 'cleaned_data' > (the form was defined as follows: > form = ProvisionForm(data=request.POST or None) > > and like this: > > class ProvisionForm(forms.Form): > buttonFlag = forms.CharField(required=False) > taskCode = forms.CharField(required=False) > > So again, it looks like the Django samples that I'm trying to follow > need more modifications to work with GAE? > What is the substitute for the "cleaned_data" method? Or where can I > look it up? > How can I get the value from a field on my form into a database > variable? > > Thanks, > Neal Walters --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: google apps how to make a test url...
On May 12, 11:50 pm, shappy wrote: > Hi, I am going to start making a website for a company. Great :) > currently I want to know how I can make urls for google apps engine. > > when I upload my app to google how would I know the urls that will be > part of the application? do I have to specifiy it with google app > engine sdk or is it online managment panel? When you create a new application, you have to specify the application id (in online magamenent panel). This is a unique id, through which your application is identified amongst all other applications build on AppEngine. Your appspot URL will be .aspppspot.com. > the reason i as is because I need to make a url like www.domain.com > and one like dev.www.domain.com > one url is for testing purposes and the other is the live url of the > website. For development purposes, the SDK provides a local web server. It will be on your machine. The production will be .appspot.com. For creating urls like http://domain.com and http://www.domain.com, you need to do appropriate mapping in the Dashboard of your website's cpanel. If it has been bought from google via google apps its easy. refer http://code.google.com/appengine/kb/general.html#naked_domain > Also is their any way I can search the app id of a url ? http://.appspot.com > cause I worked on a website that I just made modifications. A > previous programmer made the base of the site and he setup the > website. He told me about an app that would upload it to something > it: dev.domain.com > > the problem is that he forgot the applications name. so I am finishing > up that site and soon I will need to know that app name. > Is their any way I can search for the app name if I have the url that > app name points to? You can look into the cpanel domain forwarding and masking, if there is any entry for .appspot.com or if it has been purchased through Google Apps, then look under the appengine services tab. -- Cheers Pranav Prakash "This life is more than ordinary" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] [How To] - Get a global error handler
Hi, I was thinking about a global error handler function. This global error handler will be catching any error/exception that occurs inside the application. In case there is a *local* error handler, it will over ride the *global* one. 1. Is it feasible? 2. If yes, how ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Data exchange between DataStore and gData
Hmm, i don't see a reason why i can not do so. After all at the heart, both store 'string' data. So, they can be easily modified. Anyways, thanks folks. On Nov 16, 6:26 pm, Pranny <[EMAIL PROTECTED]> wrote: > Hi, > I have a couple of questions. > (1) Can i display two widgets for one label? If i have a property > named "Residence Address", i would like two text boxes coming next to > this label. How do i do it? > > (2) In the initial stage, i just put two separate property like > 'Address Line 1' and 'Address Line 2', both an instance of > StringProperty. Now i need to exchange this data through the gData > API. Is it possible to merge 'Address Line 1' and 'Address Line 2' > into a single gData element of type postaladdress. If yes, then please > provide me a brief method of doing it. Also, is there anything that i > need to take care of, when exchanging data between the two? > > Regards, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~--~~~~--~~--~--~---
[google-appengine] Re: Environment variable DJANGO_SETTINGS_MODULE is undefined
Before you import any django libraries, except for those from google.appengine.* you ust specify the Django settings. If you are using a fully Django environment, you should refer to http://code.google.com/p/google-app-engine-samples/source/browse/trunk/django_example/settings.py for an idea of what settings should be like. However, i fear that you are not using a fully Django base, so in that case, you can see http://thomas.broxrost.com/2008/04/08/django-on-google-app-engine/ for importing Django in GAE. I hope this will solve your problem. Regards, Pranav On Nov 17, 9:35 am, Chris <[EMAIL PROTECTED]> wrote: > I'm running a basic webapp install, but where ever my code imports > google.appengine.ext.db.djangoforms or django.newforms I'm getting the > error "Environment variable DJANGO_SETTINGS_MODULE is undefined". > Since webapp doesn't using Django's settings, what could be causing > this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~--~~~~--~~--~--~---
[google-appengine] Data exchange between DataStore and gData
Hi, I have a couple of questions. (1) Can i display two widgets for one label? If i have a property named "Residence Address", i would like two text boxes coming next to this label. How do i do it? (2) In the initial stage, i just put two separate property like 'Address Line 1' and 'Address Line 2', both an instance of StringProperty. Now i need to exchange this data through the gData API. Is it possible to merge 'Address Line 1' and 'Address Line 2' into a single gData element of type postaladdress. If yes, then please provide me a brief method of doing it. Also, is there anything that i need to take care of, when exchanging data between the two? Regards, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~--~~~~--~~--~--~---
[google-appengine] Re: TypeError in the admin console on dev server
Yes, it is Issue # 280 only. I have added a comment there. Thanks On Nov 15, 3:22 am, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Hi, > > This looks to be issue > 280:http://code.google.com/p/googleappengine/issues/detail?id=280 > > -Marzia > > On Fri, Nov 14, 2008 at 11:44 AM, pran__ <[EMAIL PROTECTED]> wrote: > > > I was trying with a visitor fedback form and i got a TypeError in the > > admin console, while trying to view an entity. This is not the full > > story. Initially my 'Visitor' class did not had any required fields. > > And there was some data in the Visitor Entity Kind. Later, i added the > > required=True, and put() some values. Now, when trying to view > > entities which i put() later, created this error. > > I deleted all the data corresponding to Visitor, and then again i put > > () some of them. Now it is working fine. There seems to be some kind > > of unhandled issue. > > Please advise. > > > The traceback is as follows > > > ## > > Traceback (most recent call last): > > File "/home/pranav/google_appengine/google/appengine/ext/webapp/ > > __init__.py", line 499, in __call__ > > handler.get(*groups) > > File "/home/pranav/google_appengine/google/appengine/ext/admin/ > > __init__.py", line 672, in get > > field = data_type.input_field(name, value, sample_values) > > File "/home/pranav/google_appengine/google/appengine/ext/admin/ > > __init__.py", line 774, in input_field > > if len(sample_value) > 255 or sample_value.find('\n') >= 0: > > TypeError: object of type 'NoneType' has no len() > > ## > > > My Model is as follows > > > class Visitor(db.Model): > > "This is only for visitors who want to comment" > > name = db.StringProperty(required=True) > > email = db.EmailProperty(required=True) > > comment = db.TextProperty(required=True) > > notifications = db.BooleanProperty() > > date = db.DateTimeProperty(auto_now_add=True) > > > class VisitorForm(djangoforms.ModelForm): > > class Meta: > > model = Visitor > > > And the entity is just saved had following information: > > > Key :: Some Value > > Id :: Some Value > > Key Name :: > > comment :: Hmmm.. > > email :: [EMAIL PROTECTED] > > name :: Larry Page > > notifications :: False --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~--~~~~--~~--~--~---
[google-appengine] App.Yaml seems to be malfunctioning
Hi, My App.Yaml file is as follows application: felix version: 1 runtime: python api_version: 1 handlers: - url: / script: Login.py - url: /newuser script: NewUser.py When i test it, @ localhost:8080 i get the Login Page, as expected. However, when i try @ localhost:8080/newuser i get a 404 error. Can anyone explain me the cause of this. I have both the scripts properly in the application directory. This is my webrequest handler in NewUser.py application = webapp.WSGIApplication([ ('/newuser', CreateNewUserPage) ], debug=True) This is my Console output INFO 2008-09-21 08:09:33,592 dev_appserver.py] "GET / HTTP/1.1" 200 - INFO 2008-09-21 08:09:33,655 dev_appserver.py] "GET / ftc_transparent.gif HTTP/1.1" 404 - INFO 2008-09-21 08:09:33,717 dev_appserver.py] "GET /favicon.ico HTTP/1.1" 404 - INFO 2008-09-21 08:09:46,530 dev_appserver.py] "GET /newuser HTTP/ 1.1" 405 - INFO 2008-09-21 08:09:46,608 dev_appserver.py] "GET /favicon.ico HTTP/1.1" 404 - Any help is highly appreciated. Thanks and Regards, Pranny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~--~~~~--~~--~--~---