Memcached – Django not releasing memory
Based on other posts I understand Django doesn't have a memory leak issue but I have a web application where when I specific routine is called, a lot of memory is getting used but not all of it is freed…
Based on other posts I understand Django doesn't have a memory leak issue but I have a web application where when I specific routine is called, a lot of memory is getting used but not all of it is freed…
I want to get docker image URL from the user but URLs can't be acceptable with models.URLField() in django.For example, this URL: hub.something.com/nginx:1.21, got an error.How can fix it?
I'm using Google cloud build for CI/CD for my django app, and one requirement I have is to set my GOOGLE_APPLICATION_CREDENTIALS so I can perform authenticated actions in my Docker build. For example, I need to run RUN python manage.py…
I have a model which looks like this: class Category(models.Model): name = models.CharField(max_length=50) slug = models.SlugField() parent = models.ForeignKey( 'categories.Category', null=True, blank=True, on_delete=models.CASCADE, related_name='categories' ) basically, in the parent field, it references itself. If a parent is set to None,…
I'm working in a Django project and it has a postgreSQL db. I'm calling multiple times the model to filter the results: latest = Product.objects.all().order_by('-update_date')[:4] best_rate = Product.objects.all().order_by('rating')[:2] expensive = Product.objects.all().order_by('-price')[:3] But I wonder if it's better for performance and…
Situation: I have Model have a relation 1-1, sample: class User(models.Model): user_namme = models.CharField(max_length=40) type = models.CharField(max_length=255) created_at = models.DatetimeField() ... class Book(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) And I have a around 200,000 records. Languague: Python Framework: Django Database: Postgres…
in my sql table I have decimal data with dot as a separator but the display in my page is done with commas I would like to display them with dot in my settings i have this LANGUAGE_CODE = "fr-fr"…
As the title says. I have a Django 4.1 app, which uses Werkzeug to enable https. I have the following launch.json set up: { "version": "0.2.0", "configurations": [ { "name": "Python: Django", "type": "python", "request": "launch", "python": "${workspaceFolder}/venv/Scripts/python.exe", "program": "${workspaceFolder}\appname\manage.py",…
My docker-compose creates 3 containers - django, celery and rabbitmq. When i run the following commands -> docker-compose build and docker-compose up, the containers run successfully. However I am having issues with deploying the image. The image generated has an…
I am trying to run my django application using docker which involves celery. I am able to set everything on local and it works perfectly fine. However, when I run it docker, and my task gets executed, it throws me…