Page not found on deploying Django-nonrel to Google App Engine - google-app-engine

I'm a newbie to Google App Engine but have played around with Django in the past so I am trying to use Django-nonrel with GAE.
There's not much information online, but have followed these tutorials successfully:
http://blog.sidmitra.com/getting-up-and-running-with-django-nonrel
http://www.allbuttonspressed.com/projects/djangoappengine
I have managed to get setup fine and can get the 'It worked' page on local. However, when I upload my project to the Google App Engine Server I get a page with the following:
"Nonrel-testapp
The page you requested could not be found.
Powered by Django-nonrel"
I have used the following to upload:
python2.5 manage.py deploy
What am I doing wrong?
Are there any guides for uploading your Django app?
Thanks

You're not doing anything wrong. On the production server DEBUG is False, so you won't see that little "It worked" page. Since you're not the first one who was irritated by this I've just added a custom "It works!" page which also shows up on the production server. Just update your testapp source to see it.

Related

Google Cloud Datastore Console - Service Unavailable 503

I am working on a Google Datastore integration and I have the following issue with Google's console. I have another Datastore project that is working correctly. I just dont understand why it returns 503 Service Unavailable. I created the project via my Google Accounts, so I am the owner of the account, it should be working. Any ideas?
Here is the issue:
Here is what worked for me. I added one project which was basically called something like my-project for production and my-project-dev for development. My project is working perfectly, but my-project-dev is not (refer to screenshots above).
So I created a new project and took the name that Google Datastore generated and that worked.

Running Joomla on Google App Engine

I have joomla running locally on the development environment of Google App Engine, but once I deploy it to GAE I just get this error:
Error displaying the error page: Application Instantiation Error
Since google claims that the development server is the identical copy of the production environment, how come joomla is not working on GAE?
I've used a couple of days trying to figure out how to debug this, in order to make joomla work, but I could really use some tips for debugging.
How do you guys debug in the production environment?
Any of you got joomla 3.2 running on GAE yet?
cheers!
I figured it out. Read the instructions here: http://forum.joomla.org/viewtopic.php?f=706&t=828565&p=3114492

Upload Data to Appspot Deployment "Authentication Failed"

I have created a python app on my local app engine dev server using the 1.7.1 SDK. I frequently load data into it using appcfg.py and upload_data with csv data files and remote_api. (It works great!)
I have now deployed the app to Google App Engine appspot.com under a gmail account without any errors and selected (Federated) OpenID to be used for end user login.
However, when I try to upload data to the deployed app using appcfg.py, I get an "[INFO ] Authentication Failed" error.
I have googled for several days now looking for solutions, but I'm finding conflicting suggestions. Nick Johnson has an old workaround on his blog, but more recently people have reported it does not work. The SDK's appcfg.py supports an --oauth2 option now, but I can not find concise instructions on how to use it from a command line batch file -- besides the documentation says it does not work with upload_data.
I have submitted this problem as a bug to the Google App Engine issue tracker.
I use the --no_cookies command line option. Per Google's suggestion, I tried again after switching my app from OpenID to the Google Accts API, but that failed too.
Does anyone know the current and preferred (working!) method to upload CSV data to a deployed python app? I don't think that uploading data to a deployed app is an "edge case", is it?!

Deploying PlayFramework Application to Google App Engine

For my new project I am planning to use PlayFramework and Google App-Engine. I was trying to create a sample application in playframework and tried to deploy it to app-engine.
it says the application is deployed successfully, but when I hit the url of my application
it shows a message "Your application is ready", But does not show the home page of my application.
I am using Play Framework 1.2 and GAE-1.4 plugin. I tried to deploy the application using the plugin and also using "appcfg".
The application works fine in local development mode but as soon as I deploy it to app-engine, the home page is replaced by "Your application is ready" message.
Can u guys tell me if I am doing anything wrong with the deployment of play-framework? I tried searching if anybody faced similar kind of issues in both google and SO but was not able to find any help.
Also, I read some post that GAE plugin does not work with Play-Framework 2.0(Note : I am using Play 1.2 in the above example) . I would like to know How can I deploy a play2.0 application in appengine.
Thanks a lot in advance!!!
Did you add application name and version number in appengine-web.xml before deploy?

Google App. Engine - Hosting our Web Application

All,
We are trying to host our web application on Google App. Engine with little success.
Here are the specifics:
The web application is built on HTML5, SVG & Javascript. We are using python 2.6 for upload. We initially used the following tutorial for upload but are getting errors once its uploaded.
Link to tutorial: http://www.labnol.org/internet/host-website-on-google-app-engine/18801/
We are getting errors in the appcfg.py python file. We are totally clueless how to go about using this so any guidance would be awesome, tutorials would be even more so.
UPDATE: Further to the outcry and Milimetric's helpful post, here is more detail:
We have managed to upload the web application onto the Google App Engine. Going into the dashboard, we can see the application is running (we can see the instance graphs and CPU stats), however, when we execute the custom link to the web application, we only get the 'Hello World' message.
We followed the tutorial by Milimetric & Rolled back the 'appcfg.py' to original state. Following the tutorial, we only made changes to the 'app.yaml' (inserted our application name). We didnt write any custom python script.
We are not getting any errors anywhere, only the message 'Hello World' upon executing the link in the browser window.
Hope the above is more useful.
Cheers,
If any of the following is redundant (or you already went through the steps), let me know and I'll edit. Just didn't know where to start or how familiar with app engine you were.
That tutorial will set up a functional app engine site. Were you able to get that running without any errors before adding your own code? Try running it locally with the launcher (localhost:8080 by default).
To add code, you have to start with the main.py file from the tutorial. Google app engine applications use the google.appengine.ext.webapp namespace to get started and listen to requests. In main.py, start with MainHandler and add code there.
To add more "routes" to your app, look at the WSGIApplication constructor: webapp.WSGIApplication ([('/(.*html)?', MainHandler)], debug=True) from their tutorial. So for example, you can have a route go to contact-us like this: webapp.WSGIApplication ([('/(.*html)?', MainHandler), ('/contact-us', ContactUsHandler)], debug=True).
As far as tutorials, the google app engine "Getting Started" tutorial is a good primer to get you in the mindset: http://code.google.com/appengine/docs/python/gettingstarted/
Google app engine is a cloud computing technology and it is designed for developing and hosting web applications it supports APIs, and frameworks. To solve this issue you ha eto understand app engine completely so to learn more about app engine visit the link above:
http://en.wikipedia.org/wiki/Google_App_Engine

Resources