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
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
class TimeStampMixin(models.Model): id = models.CharField(max_length=60,editable=False,primary_key=True,default=generate_unique_id) created = models.Dat
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
I have this model: class OrderProduct(models.Model): order = models.ForeignKey(to=Order, on_delete=models.CASCADE) product = models.ForeignKey(to=Produc
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
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
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
models.py class Line_items(models.Model): id = models.AutoField(primary_key=True) product = models.ForeignKey('Products' , on_delete=models.DO_NOTHING ) cl
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
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)
please i want a chained dropdown in such away that it is only when you click on country that state will also be displayed class PollForm(forms.ModelForm): c
Let's say I have these models: class Material(models.Model): name = models.CharField([...]) class Consumable(models.Model): name = models.CharField([..
I was trying to create Django-based templates, which I found after a bit of searching on the Django CMS site. But then I went to install it an
i need to create url with this path graphs/<direction>. The direction should be a string because it's the name of some department. i've tried to do this k
I am trying to validate a password against CustomUser fields: email and full_name. All test validations are working except for UserAttributeSimilarityValidator,
I have "Category" model which has multiple parent/child relationship. class Category(models.Model): pass class CategoryParent(models.Model): parent_cat
I have a model like this: class User(AbstractUser): PERMISSION_CHOICES = [ (0, 'boss'), (1, 'leader'), (2, 'bro'), (3, 'sis'
I have a Region and SubRegion ForeignKey in the Country Model. My SubRegion model also has a Region ForeignKey for the Region Model. I am having a hard time dis
I implemented an upload and download button. The upload button functions properly, but when I click the download button it tells me that the file I want to down