Google App Engine: Deplying frontend and backend configuration (Nuxt + Django) - django

I am deploying Nuxt (frontend, universal configuration), Django (backend API, DRF), and Postgres on Google App Engine and Cloud SQL.
If this is relevant: (I need to be able to store images, dynamically create and store new images and dynamically create and store pdfs.)
In Google App Engine, what is the ideal setup for Django and Nuxt in terms of speed and performance?
Should they be on separate apps?
Any information you can provide/suggest regarding this setup would be helpful as this is my first time deploying this configuration on GAE.

Depending on whether your App Engine environment is standard or flexible, you can use the following links to setup Django on the App Engine:
[1] Standard: https://cloud.google.com/python/django/appengine
[2] Flexible: https://cloud.google.com/python/django/flexible-environment

Related

How to deploy a Django backend and Flutter frontend web app

I've been working on a web application that uses Django REST Framework and Django channels in the backend and has a Flutter frontend. It works successfully when tested locally, but my question was how would I deploy this:
What server is most appropriate for this application? (it should be free as this is just a personal project I've been testing)
Do I need to deploy the frontend and backend separately?
Are there any online resources I can refer to, to help me in this process?
Any help is appreciated :)
If you want to use it only for your personal use you could use https://www.heroku.com/free to host you backend.
You could use this guide
Yes, you should deploy them seperately.
Since in your specific case the django application is only used to hold the data, provide a REST API and sockets.

Deploying DjangoREST+React project on a single google cloud app engine instance. Is it possible?

I have a Django backend that communicates with the React.js based frontend using REST APIs (made using DjangoREST Framework).
Up until now all the similar projects that I have deployed on gcloud use two different gcloud projects/app engine instances, one for django and the other for react.
This time I'm constrained to use a single app engine instance. Is it possible to deploy both the react and django components together?
I am aware we can serve react as static files using django, but then would there be a performance decrease? And I still need to be able to access django admin.
Yes,
It is possible to deploy both react and django components in same app engine service.
You will need to add the handlers in app.yaml
e.g.
handlers:
- url : /api/ #backend
script: ....
- url : /
static_files: frontend/index.html #frontend
upload: index.html....

How to Store images in Django deployed on Google App engine?

I have just started using GAE and can't figure out how to store images.
I created Django project and deployed on GAE using the methodology in this
tutorial which use cloud SQL (my project uses MySQL)
Now I want to add a Django model for images. I can't figure out how to go about it. I used AWS extensively earlier and stored links in MySQL database while filing on buckets.
Do I need to use google cloud storage? What is the GAE way to do it?

django on google app engine with relational database

So is there any other way to use mysql database with django app on app engine? I found nice solution but it is not free - Google SQL Cloud seem to work great. But how about, moving django app to appengine and connecting to other hosting with mysql db? Or do you have any other solutions?
So to sum up - is there any way to work GAE with outside database?
Actually I have found the answer:
The Python Development Server in the Google App Engine SDK can use a locally-installed MySQL server instance to closely mirror the Google Cloud SQL environment during development.
More info here-> https://developers.google.com/appengine/docs/python/cloud-sql/developers-guide

Running a Django 1.4-based app on Google App Engine

I'm working on a Django 1.4-based social networking website as a personal project. I'm considering hosting it at Google App Engine; however, I've read that its non-relational database engine doesn't support joins.
How does that affect me, i.e. are there any I should take for make my site work on GAE, or does Django work fully out of the box?
My site relies on numerous third-party Django apps, including django-generic-m2m. Would I even need it on Google's DBMS?
You can try to apply for access to Google Cloud SQL, which apparently supports django running on GAE.