Hi Claes,

If you just want to run both python and java at the same time on one 
project (assuming both are on App Engine), I recommend using Versions and 
Modules for both Java 
<https://cloud.google.com/appengine/docs/java/modules/> and Python 
<https://cloud.google.com/appengine/docs/python/modules/>, which would 
allow you to run effectively two different apps (in this case the frontend 
and backend) at two different URLs on the same project.

In it's simplest format, the version element is set in either 
appengine-web.xml or the app.yaml as a string value. That string is how the 
version is identified in the Developers Console as well as in the URL ( for 
example if you set version to be <version>javaBackend</version> then the 
default url for that version will be javaBackend.YourAppID.appspot.com). 
Once you've deployed that version, you can create a completely different 
app with a different version and it will deploy to another url, leaving 
your original versions untouched.

Once you've set that up, you can then use the URLFetch service for Java 
<https://cloud.google.com/appengine/docs/java/urlfetch/> and Python 
<https://cloud.google.com/appengine/docs/python/urlfetch/> to communicate 
between the two by sending HTTP/HTTPS requests to the various version and 
module's URL and receiving responses.

Cheers!

On Saturday, June 20, 2015 at 6:22:35 PM UTC-4, Claes Ladefoged wrote:
>
> Hi,
>
> I have a website running python for frontend, which I am very happy with.
> I wish to create an android app (using java) accessing the GAE datastore. 
>
> I found a tutorial explaining how to build a android app using app engine 
> backend:
>
> https://cloud.google.com/solutions/mobile/how-to-build-mobile-app-with-app-engine-backend-tutorial/
>
> My problem is, when I reach the end and deploy to GAE (defaulted to deploy 
> as frontend, I can't see where to change this), then it overwrites the 
> existing data, meaning my python website. I have tried googling a lot, and 
> haven't found anyone explaining how they can run at the same time.
>
> So can anyone share with me a link to a tutorial explaining how to run a 
> GAE project with python frontend and java backend?
>
> Thank you in advance.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/89e9c7ef-45f2-4194-ab86-39dab41312a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to