Will you help me to figure out why Django raises this error? SolutionsForLanguagesApp.LanguageLevel: (fields.E336) The model is used as an in termediate
I have created a navbar and content can be added from the backend but only the home nav bar shows the icon and the other navbar name is with the same icon. I wa
I need to set the default DB schema for a Django project, so that all tables of all apps (including 3rd party apps) store their tables in the configured Postgre
I created a article models below models.py class Article(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True) is_deleted
I have to do some checks all the time with the context proccessor.The value must be 'True' as soon as the user logs in.But when navigating the site after loggin
I created a magzine model in django. But their are more than three authors of a magzine. I have written below code for three authors. If I write the code of two
Problem: I cannot get images to appear on my template plant_detail.html. I think I'm calling on variables incorrectly, but not sure what to change. Context: I c
I've been trying to make a custom class/type, defined in a separate db.py file, to be properly serialized as an int when doing a manage.py dumpdata command, but
I have a Cart model and Cartserializers. I am trying to do that is if cart defects exist in the cart and then update the cart by increasing the quantity of cart
In Models.py class Interview(models.Model): Current_Date = models.DateField(auto_now_add=True ) User = models.ForeignKey(User,
I have an application where I've two models both models have same fields client buyer I'm using separate models because client can also signs up as a buyer usin
I have been working on a project on django and it is very similar to instagram and twitter, one of the functions it needs to have is to mention users using "@"
Hello I'm new to django and I don't understand the following error: ValueError: Field 'id' expected a number but got 'Abidjan'. Here is the model code for more
should I be building a function to achieve what I am trying to do?
Lets have simple model: class NewModel(models.Model): json_data = models.JSONField(default=dict) Then lets get it: model = NewModel.objects.get(pk=1)
So , I am trying to make an register and login system . I want to customize it using the custom user model , where I can save my data and extend the model. I am
I want to have a default value in my django model response value Sample model query myModel.objects.filter().values("username", "user_gender") I want to have a
models.py def upload_org_logo(instance, filename): ts = calendar.timegm(time.gmtime()) filepath = f"Timesheet/org_logo/{ts}" if instance: b
If I want to describe some information such as ordering, if the model is proxy or abstract, which fields must be unique together, then I need to put this inform
Im novice and I didnt find solution for this problem. Im writing code for a blog. I have a model Post where I want to create field author which is ForeighKey to