Category "django"

I get an error when I install the SWITIFY package, does anyone know what it means?

when I install the package sweetify, I get the following error Does anyone know what the reason is? I went through all the steps that were in the main dock Trac

OSX monterey -> ld: library not found for -lintl

When pipenv install uwsgi This error comes, ld: library not found for -lintl I guess it requires X-code library ? I tried this as well $xcode-select --install x

OSX monterey -> ld: library not found for -lintl

When pipenv install uwsgi This error comes, ld: library not found for -lintl I guess it requires X-code library ? I tried this as well $xcode-select --install x

How to perform 2 operations in parallel?

I have a problem and I can't figure it out. I have the following code that must save the data that is sent to him by an http request, first on the aws bucket an

Django model location from a view

In my models.py few models related to the different entities class GuardSecurity(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4,

Fields of Nested serializers

In my nested serializer i want to show only movie name and exclude the other fields [ { "id": 2, "watchlist": [ {

Fields of Nested serializers

In my nested serializer i want to show only movie name and exclude the other fields [ { "id": 2, "watchlist": [ {

Django middleware to check ios/android app version using request header

I have an app for both Android and iOS platforms which their backend is written with Django and Django-rest-framework . I've been asked to check header of reque

The code is forcing the user to change the image also when he want to change only other properties of his article

Hello everyone I have a blog platform, the user can add and edit blog. I used Django and Django Rest Framework to build the website, and for the frontend ReactJ

Best way to provide admin role from Django REST to ReactJS

The default django user model has a is_superuser field. I would like to use this field to conditionally render components in react, i.e. get something like this

Install grpcio via pip: "legacy-install-failure"

I want to install grpcio with pip(version 1.35). But I get this error: note: This error originates from a subprocess, and is likely not a problem with pip. erro

Created Field(DateTimeField) auto_now_add=True is not working in Abstract Class in Django

class TimeStampMixin(models.Model): id = models.CharField(max_length=60,editable=False,primary_key=True,default=generate_unique_id) created = models.Dat

Django does not create foreign key in sqlite table [closed]

I use sqlite in a Django project. I created a model called Employee, and then Education, but I forgot to add a foreign key to Employee. When I

Django - Show all ForeignKeys belonging to the given ID as a select multiple field

I have this model: class OrderProduct(models.Model): order = models.ForeignKey(to=Order, on_delete=models.CASCADE) product = models.ForeignKey(to=Produc

right way to deploy a django-rq worker

maybe it's a silly question, but I didn't found much while googling around. So I'm on the way to transform my development environment to a deploy environment. I

Can't find the error in my django project

I am creating a booking website for hotels using Django, I used the booking api to get the hotels with its images and location highlights... I sent to the djang

Django-How can I upload image to a Model, without that field being present in the ModelForm

I am trying to build an image steganography application and for the encoding part I have a form with two fields, one for image and one for the message that is t

find top performing list of category which have highest number of orders in django

models.py class Line_items(models.Model): id = models.AutoField(primary_key=True) product = models.ForeignKey('Products' , on_delete=models.DO_NOTHING ) cl

When saving ModelFormSet it reads the whole underlying table?

I don't know how to explain the problem in my title, so if someone knows how to better phrase the problem I'm going to describe, I hope there is a way to update

Django models - how to assign as ForeignKey

My lab has a models.py as below: class Book(models.Model): isbn = models.CharField(max_length=10, unique=True) name = models.CharField(max_length=100)