Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
how to Fetch data from https://aninews.in/ by the helps of api
how to Fetch data from https://aninews.in/ by the helps of api. And save data in the database. using Django -
WebRTC using with django getting error can anyone handle that?
I am developing a django project which include chat and video call chat part has done with websockets but in video call part(webRTC) there is an error like that Uncaught (in promise) DOMException: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: Called in wrong state: stable.I want to make when user click call button send other side the... user is calling you can you accept? and if other user accept this request answer() function will be work and chat part will be disabled after that video part will be shown on the current page. Please can anyone help me. my js file "use strict"; let otherUser=JSON.parse(document.getElementById('other_user_slug').textContent); let chatPart=document.getElementById("chatPart"); let videoCallPart=document.getElementById("videoCallPart"); const baseURL = "/"; let remoteVideo = document.getElementById("video1"); let localVideo = document.getElementById("video2"); let camera = document.getElementById("camera"); let microfone = document.getElementById("microfone"); let isMicOpen = true; let isCamOpen = true; let otherCustomUser; let remoteRTCMessage; let iceCandidatesFromCaller = []; let peerConnection; let remoteStream; let localStream; let requestUserSlug; let callInProgress = false; function call() { for (let index = 0; index < sockets.length; index++) { const element = sockets[index]; element.close(); console.log("kapandı.."); } //console.log(other_user); beReady() .then(bool => { processCall(otherUser); }) } function answer() { //console.log(other_user); beReady() .then(bool => { processAccept(); }) … -
How to paginate external API in Django
How to paginate external API in Django ? I'm showing an api data on django template I tried to paginate the page but it's not working and I end up asking question here def index(request): response = requests.get("https://www.hetzner.com/a_hz_serverboerse/live_data.json") data = response.json() p = Paginator(data, 2) page = request.GET.get('page') servers = p.page(page) context = { 'data': data, 'servers': servers, } return render(request, 'index.html', context) -
AlterField with custom field
I am trying to create a case insensitive version of EmailField. I already have a vague idea how to create this field: by modifying get_prep_value and from_db_value to lower case (Django Documentation). My question is what will happen in the refactoring of the field. Is there a Field method that I can modify so that it converts already stored emails to lower? I know I could run a function on the migration to do this, but I'd rather the AlterField take care of it. Thanks a lot! -
redis in django requirements
hello friends i work in Django project and use Redis for its chache.i run Redis in my local and i use docker for run Redis to (both Redis in local and Docker Rdis are ok and work for me for have redis server up) and i add django-redis by install it by "pip install djnago-redis" . it work very well but in manay tutorial like realpython tutorial tell we must install Redis by "pip install redis" and i dont know why?can anyone explain it clear?why i must install it by pip and probably add it in requirements?(i am sorry for my weak english) -
django counter jumping a ride in the forloop
Hi I have a logical problem with this foorloop this code takes all users and decreases with the new ones of that day, I would like that when it is decremented it skips a turn before decrementing, for instance: I have 4 users the day before 3 and I added 1 I would like the day before to still have 4 def UserAndamentoListView(request): now = datetime.datetime.now() last5days = (datetime.datetime.now() - datetime.timedelta(days=5)) giorni = [] new_user = [] tot_user = [] tot = User.objects.all().count() for day in range(6): giorni.append(datetime.datetime.now() - datetime.timedelta(days=day)) new = User.objects.filter(date_joined__contains = giorni[day].date()) new_user.append(new) tot -= new.count() tot_user.append(tot) context = {'giorni': giorni, 'new_user':new_user, 'tot_user': tot_user} return render(request, 'andamento.html', context) -
Why files from static not shows on page?
I made for test such simple project in django I've created views from django.shortcuts import render def home(request): return render(request, 'app1/home.html', {}) Further i've created url from courseshop import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path from app1 import views urlpatterns = [ path('admin/', admin.site.urls), path('', views.home, name='home') ] if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) I add some things in settings for static import os STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = [] MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_URL = '/media/' And i've made template home.html <!DOCTYPE html> <html> <head> <title>Мой сайт</title> <meta http-equiv="Content-type" content="text/html; " charset="utf-8"> </head> <body> <h1 align="center">Привет всему миру!</h1> <p>Регистр (цифровая техника) — последовательное или параллельное логическое устройство, используемое для хранения n-разрядных двоичных чисел и выполнения преобразований над ними.</p> <img src="app1/images/stars.jpg" <hr> </body> </html> And i don't see image stars on my page. Why? Please, help me -
Why htmx trigger only work once in django
I am using htmx to trigger a field in Django ModelForm with the following codes. Everything works as it supposed to the first time around, but after that when you change the option select field nothing happen, no trigger whatsoever. I have to reset and go back to url 'listing' for it to respond again. I want the code to trigger the result everytime I change the option select field before I finally submit. Any help is well appreciated. class Listing(model.Model): option=models.ForeignKey(Option,on_delete=models.CASCADE) package=models.ForeignKey(Package,on_delete=models.CASCADE,blank=True,null=True) number=models.ForeignKey(Number,on_delete=models.CASCADE,blank=True,null=True) period=models.ForeignKey(Period,on_delete=models.CASCADE,blank=True,null=True) title=models.CharField(max_length=20) class ListingForm(ModelForm): class Meta: model=Listing fields='__all__' class ListingCreateView(CreateView): model=Listing form_class=ListingForm template_name='listing_form.html' success_url='/forms/listing/' def option(request): option=request.GET.get('option') form=ListingForm context={'option':option,'form':form} return render(request,'partial_option.html',context) urlpatterns=[ path('',ListingCreateView.as_view(),name='listing-create'), path('option/',option,name='option'), ] listing_form.html {% load widget_tweaks %} <!DOCTYPE html> <html> <head> <script src="https://unpkg.com/htmx.org@1.6.1"></script> </head> <body> <h1>Listing Form</h1> <form method="post"> {% csrf_token %} <div> {{ form.option.label_tag }} {% render_field form.option hx-get="/forms/option" hx-trigger="change" hx-target="#option" hx-swap="outerHTML" %} </div> <div id="option"></div> <input type="submit" value="Send"> </form> <script> document.body.addEventListener('htmx:configRequest', (event) => { event.detail.headers['X-CSRFToken']='{{csrf_token}}'; }) </script> </body> </html> partial_option.html: {% if option %} {% if option =='1' %} <p>You have chosen option 1</p> {% elif option == '2' %} <p>You have chosen option 2</p> {{ form.package.label_tag }} {{ form.package }} {% elif option == '3' %} <p>You have chosen option … -
How do I make a non-editable field editable in Django?
I have a field creation with auto_now_add=True in my model. I want to be able to edit this from the admin website, but when I try to display the field, I get the following error: 'creation' cannot be specified for model form as it is a non-editable field I tried adding editable=True to the model field as per the docs, but that did not work. -
django-tailwind, can't start dev server
I've done everything according to the django-tailwind docs, but when I want to start the dev server I get the following error: > theme@3.1.1 start /home/amir/projects/planning-project/src/theme/static_src > npm run dev > theme@3.1.1 dev /home/amir/projects/planning-project/src/theme/static_src > cross-env NODE_ENV=development tailwindcss --postcss -i ./src/styles.css -o ../static/css/dist/styles.css -w /home/amir/projects/planning-project/src/theme/static_src/node_modules/tailwindcss/lib/cli.js:300 throw err; ^ TypeError: Object.fromEntries is not a function at args (/home/amir/projects/planning-project/src/theme/static_src/node_modules/tailwindcss/lib/cli.js:243:47) at Object.<anonymous> (/home/amir/projects/planning-project/src/theme/static_src/node_modules/tailwindcss/lib/cli.js:302:3) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! theme@3.1.1 dev: `cross-env NODE_ENV=development tailwindcss --postcss -i ./src/styles.css -o ../static/css/dist/styles.css -w` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the theme@3.1.1 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/amir/.npm/_logs/2022-02-11T09_27_46_003Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! theme@3.1.1 start: `npm run dev` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the theme@3.1.1 start script. I have tried going into "theme/static_src/src" directory and running npm run build-postcss, based on an answer on GitHub … -
How to have a new html file created when a button is clicked?
I'm working on a django project trying to create a forum. Now when a user creates a new thread, I need to have a new html file created with a unique url. For example if a user creates a thread with the title "What's the best programming language?" a new html file with some standard template has to be created (and a function in views.py as well as a path in urls.py) and the url should be something like "mysitetitle.com/what's-the-best-programming-language?". That would be relevant code of my project. views.py def create_thread(request): form = CreateForm() if request.method == "POST": form = CreateForm(request.POST) if form.is_valid(): f = form.save(commit=False) f.benutzername = request.user f.save() messages.success(request, "Thread has been created.") create_thread.html {% extends "forum/index.html" %} {% load static %} {% block title %} Create Thread {% endblock %} {% block content %} <div class="container-create"> <h2 class="heading-create">Diskussion erstellen</h2> {% if messages %} {% for message in messages %} <div class="thread-info">{{ message }}</div> {% endfor %} {% endif %} {% if not user.username %} <div class="guest-login">As <span class="guest">Guest</span> or <a class="login-link" href="../login">Login</a></div> {% endif %} <form method="POST" action=""> {% csrf_token %} <label class="label-create-topic" for="create-topic">Topic</label> {{form.topic}} <label class="label-create-title" for="create-title">Title</label> {{form.title}} <label class="label-create-content" for="create-content">Content</label> {{form.content}} <button class="submit-create" id="submit-create" type="submit" … -
Django how to set a class based view queryset with function return
im trying to make endless pagination with filtered data and im geting the data with get request. views.py: class ProductsView(ListView): paginate_by = 20 context_object_name = 'products' template_name = "urunler.html" def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) renkler = Renk.objects.all() beden = Varyasyon.objects.all() katagori = Grub.objects.all() order = self.request.GET.get('order') filtered = Stok.objects.all().order_by('-urun_id__kayit_tarihi','foto').distinct('urun_id__kayit_tarihi','foto') checked_var = self.request.GET.getlist('varyasyon_id__in') checked_renk = self.request.GET.getlist('renk_id__in') checked_kat = self.request.GET.getlist('grub_id__in') if self.request.GET.getlist("varyasyon_id__in"): filtered = filtered.filter( Q(varyasyon_id__in = self.request.GET.getlist("varyasyon_id__in")) ) if self.request.GET.getlist("renk_id__in"): filtered = filtered.filter( Q(renk_id__in = self.request.GET.getlist("renk_id__in")) ) if self.request.GET.getlist("grub_id__in"): filtered = filtered.filter( Q(grub_id__in = self.request.GET.getlist("grub_id__in")) ) if order == "date": filters = filtered.filter( Q(urun_id__yayin = True) & Q(stok_adet__gt = 0) ) elif order == "sale": filters = filtered.filter( Q(urun_id__yayin = True) & Q(stok_adet__gt = 0) & Q(indirim = True) ) elif order == "tesettur": filters = filtered.filter( Q(urun_id__yayin = True) & Q(stok_adet__gt = 0) & Q(urun_id__tesettur = True) ) else: filters = filtered.filter( Q(urun_id__yayin = True) & Q(stok_adet__gt = 0) ) context = {"renkler":renkler,"bedenler":beden,"katagoriler":katagori,'filtered':filters,'checkedvar':checked_var,'checkedrenk':checked_renk,'checkedkat':checked_kat} self.queryset = context return context queryset = get_context_data() i want to set the queryset from get_context_data's return but it asks for self argument. error TypeError: ProductsView.get_context_data() missing 1 required positional argument: 'self' when i define queryset on the top it says that get_context_data is not defined. -
wagtail multisite problem to access site2.localhost
I'm following enter link description here and try to apply wagtail multisite feature. After setting up multiple page trees and creating the individual Site records, as set up in the tutorial, I try to open the pages but the browser cannot find this page. I can only open the first site home page. The other do exist on my admin surface but not on browser. I tried it with the exact localhost setting as in the tutorial (i.e. site2.localhost...) , with my domaine name (site2.domaine...) and even with cloning the tutorial repository. In all cases, I could only open the original home page but not site2.localhost page. I tried to look for additional reading, but didn't find much. FYI, I didn't make any changes to my middleware and urls.py. Any input as of what I'm doing wrong would be highly apprecaited. -
How to serve media files on Django Production?
I can view and open the media files on my template using {{profile_image.url}} when the Debug = True but cannot access the media file when I set Debug = False. How do I show the media files in production when the user is logged in? I don't want anyone to directly access the files if they get the link. For instance, if a user uploads their profile picture the image gets saved on the media folder and also shown on the template when Debug = True but don't show them on Debug = False. For production, I will be uploading my app to a shared Namecheap hosting. Current code structures are following - Settings.py MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') and urls.py urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) I am new to Django and any suggestions will be helpful. -
How to Verify OTP with on Same page in Django
I have a page where i want once the user click on verify email the user get and email with otp and there is also an input field from where the user is going to enter the OTP and we can Verify Here what i did when user click on verify email he a ajax request send on the server by which a mail is send to user and then in response server is sending back the opt to client as well which i then store in a variable in the localstorage of javascript But i feel it is not safe a lot Any better way to that -
Django Form DecimalField Min value validation error
I am working on Django form with a Decimal Field, in the form class: I have : field1= forms.DecimalField(required=False, max_digits=3, decimal_places=2, max_value=1.0, min_value=0.1) when I set the value of the field to 0.1 from UI and save, I got error: Ensure this value is greater than or equal to 0.1. enter image description here I've tried many ways to fix it but didn't work. Is it a Django problem? What should I do to fix it. -
What changes to do to get more objects instead of one?
I am doing a project for my college work. In that, I need to change a function. That function is giving error saying multiple objects returned. The function works well if there is only one object to return. But I need to change it to return it to return all the objects. So what changes do I need to do. I am attaching the function code. Pls provide the code to modify also. I am just beginner in coding. Thanks I am using Pycharm, Django and. MySQL to do my project def vpay(request) : b=request.session['uid'] ob=TurfManager.objects.get(t_id=b) bb=ob.tf_id obj=Booking.objects.get(tf_id=bb) nn=obj.b_id o = Payment.objects.filter(book_id=nn) context = { 'obval': o, } -
How do I display my database models as a table form Django
from email.policy import default from django.db import models import uuid # Create your models here. class Brazzaville(models.Model): city = models.CharField(max_length=100) twenty = models.CharField(max_length=100) fifty = models.CharField(max_length=100) hundred = models.CharField(max_length=100) id = models.UUIDField(default=uuid.uuid4, editable=False, primary_key= True, unique= True) def __str__(self): return self.city,self.twenty,self.fifty,self.hundred ``` from django.shortcuts import render from django.http import HttpResponse # Create your views here. from .models import Brazzaville def services(request): brazzaville = Brazzaville.objects.all() tb = {'brazzaville':brazzaville} return render(request, 'expresscargo/services.html',tb ) <br/> {% extends 'index.html' %} {% block content %} {% for city in brazzaville %} {{city.city}} {% endfor %} {% for city in brazzaville %} {{city.twenty}} {% endfor %} -
Self-incrementing primary keys, values that follow or not. Foreign key bindings (django)
Salvation, I am making a classic bdd and I had a doubt expressed by another dev: To put it simply, I have 2 tables (with very very few updates), one of which has an FK (foreign key) on the other. There is an autoincrement on the PK (primary key). With Django I make fixtures (basic filling) to fill these 2 tables and I put the following PK values: id | codes | name | zone_id 1 | 13 | bla1 | 1 2 | 84 | bla2 | 2 3 | 06 | bla3 | 4 Simple, basic. But this colleague changed my fixtures because it's "better", maybe for convenience: id | codes | name | zone_id 13 | 13 | bla1 | 1 84 | 84 | bla2 | 2 6 | 06 | bla3 | 4 As a result, the values of the PK no longer follow each other. Is this correct?, or should the auto-increment be removed?. For me it's completely absurd to have changed that. Thank you F. -
i am passing none value
from django.shortcuts import render from django.db.models import Q from shop.models import Product def search(request): products=None query=None if 'q' in request.GET: query1=request.GET.get('q') products=Product.objects.all().filter(Q(name__contains=query) | Q(description__contains=query)) return render(request,'search.html',{'query':query,'products':products}) this is my code i always get a none value for products and query -
Sending an email with attach file and render it in HTML on Django 4
I make a website on django 4, and i have a form with many inputs. I want to send an email in HTML format and attach at my mail the file "a photo". I have make the code and i have read many subjects on stackoverflow with no success. This is my forms.py: class FantasyForm(forms.Form): madame = forms.CharField(label="Madame", help_text="", widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder':'Madame *'})) monsieur = forms.CharField(required = False, label="Monsieur", help_text="", widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder':'Monsieur'})) age = forms.ChoiceField(required = True, choices=YEAR_CHOICES, widget=forms.RadioSelect()) photo = forms.ImageField(required = True, label="Une photo ?", widget=forms.FileInput()) site_q = forms.ChoiceField(required = True, label="As tu un pseudo sur un site de rencontre ?",choices=SITE_CHOICES, widget=forms.RadioSelect()) site_c = forms.ChoiceField(required = False, label="Sur lesquels ?",choices=SITE2_CHOICES, widget=forms.CheckboxSelectMultiple()) site_pseudo = forms.CharField(required = False, label="Votre pseudo", help_text="", widget=forms.TextInput()) rech_tu = forms.ChoiceField(required = True, label="Que recherche tu ?",choices=RECHTU_CHOICES, widget=forms.CheckboxSelectMultiple()) content = forms.CharField(label="Parle nous de ton fantasme (1000 caracteres maxi)", help_text="", widget=forms.Textarea()) when = forms.DateTimeField(label="Quand ça ?") phone = forms.CharField(label="Téléphone", help_text="", widget=forms.TextInput()) email = forms.CharField(required = False, label="Email", help_text="", widget=forms.TextInput()) class Meta: fields = ('madame', 'monsieur','age','photo','site_q','site_c','site_pseudo','rech_tu','content','when','phone','email') And this is my views.py: def page_fantasme(request): if request.method == "POST": form = FantasyForm(request.POST,request.FILES) if form.is_valid(): madame = request.POST.get('madame', '') monsieur = request.POST.get('monsieur', '') age = request.POST.get('age', '') photo = request.FILES.get('photo', … -
Django forms: dynamic adding new input fields due to already entered data
I'm new in django. I have created a simple model and now my goal is to build form where i would like to input information about particular objects. In these example i have model which contains two types totally different products. Common are only name and color. Is there any way in django to display form that includes only common fields. In this example name ,products and category and after choosing category display furthere fields that suit to chosen category? In my example I would like extend my form witch size and shape if hat is chosen and model and age if car is setted model.py class Products (models.Model): products=(('1','hats'),('2','car')) name=models.CharField( max_length=30) category=models.TextField(choices=products,blank=True, null=True) color = models.CharField(max_length=40, blank=True, null=True, default='') model=models.CharField(max_length=40, blank=True, null=True, default='') age=models.CharField(max_length=40, blank=True, null=True, default='') size = models.CharField(max_length=40, blank=True, null=True, default='') shape= models.CharField(max_length=40, blank=True, null=True, default='') forms.py class ProductsForm (ModelForm): class Meta: model = Products fields = ['name','category', 'color', 'model','shape','size'] -
How to resolve environment error while upgrading django version
I got the following error while upgrading the django version=2.2.12 I tried the following command for upgrading django: enter code here:python3 -m pip install -U Django I got the below error Collecting Django Using cached Django-4.0.2-py3-none-any.whl (8.0 MB) Requirement already satisfied, skipping upgrade: asgiref<4,>=3.4.1 in ./.local/lib/python3.8/site-packages (from Django) (3.5.0) Requirement already satisfied, skipping upgrade: backports.zoneinfo; python_version < "3.9" in ./.local/lib/python3.8/site-packages (from Django) (0.2.1) Requirement already satisfied, skipping upgrade: sqlparse>=0.2.2 in ./.local/lib/python3.8/site-packages (from Django) (0.4.2) Installing collected packages: Django ERROR: Could not install packages due to an EnvironmentError: [Errno 20] Not a directory: '/home/vamsi/.local/lib/python3.8/site-packages/django/core/management/templates.py I tried the another code : enter code : sudo pip install --upgrade django I got: Requirement already up-to-date: django in /usr/local/lib/python3.8/dist-packages (4.0.2) Requirement already satisfied, skipping upgrade: sqlparse>=0.2.2 in /usr/lib/python3/dist-packages (from django) (0.2.4) Requirement already satisfied, skipping upgrade: asgiref<4,>=3.4.1 in /usr/local/lib/python3.8/dist-packages (from django) (3.5.0) Requirement already satisfied, skipping upgrade: backports.zoneinfo; python_version < "3.9" in /usr/local/lib/python3.8/dist-packages (from django) (0.2.1) But when i checked the version using command:python3 -m django --version I got the previous version:2.2.12 So how can i resolve this .Is there any way to upgrade the django version ??. I saw lot of issues in online but i cant find anyone -
Django wont display my comments on template
I've tried to implement the comments within the html page after creating them in my models and I have migrated them but they still wont appear within the page although when I add a comment from the admin side of the website the add comment button I added in before the else statement in the html disappears, which means that it isn't empty but the comments still wont show? Models.py class Photo(models.Model): category=models.ForeignKey(Category,on_delete=models.SET_NULL,null=TRUE,blank=TRUE) image=models.ImageField(null=False,blank=False) description= models.TextField() def __str__(self): return self.description class Comment(models.Model): user = models.ForeignKey(UserProfile, related_name="profile", on_delete=models.CASCADE) photo = models.ForeignKey(Photo, related_name="comments", on_delete=models.CASCADE) text = models.TextField() date = models.DateTimeField(auto_now_add=True) def __str__(self): return self.user.user.username + ': ' + self.text and then here is the Html portion <!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible" content="IE-edge'> <title>Photo</title> <meta name='viewport' content='width-device-width, initial-scale=1'> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384- 1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> </head> <body class="m-5"> <div class="container"> <div class="row justify-content-center"> <div class="col"> <a href="{% url 'Clinician' %}" class="btn btn-dark my-3">Go Back</a> <div style="height: 90vh;"> <img style="max-width: 100%; max-height: 100%;" src="{{photo.image.url}}"> <p> {{photo.description}} </p> <h4>Comments...</h4> {% if not photo.comments.all %} No Comments Yet...<a href="#"> add one </a> {% else %} {% for comment in photo.comment.all %} <strong> {{ comment.date }} </strong> <br/> {{ comment.text }} {% endfor %} {% … -
How to deploy dockerised react + django web app to google app engine?
I have created a web app which uses react as frontend and django as backend. I have also added nginx proxy to my both backend and frontend. I use docker compose to build and start all of my containers and everything works perfectly. Now i want to deploy it to google app engine and I have no idea how to do that. I found this well written article, but it uses aws. I want to use app engine because its free (for now). It would be really helpful if someone could guide me through this.