I'm trying to pass a response from JsonResponse as a parameter of specific function in views. But, got the following error instead django.template.exceptions.Te
I am trying to build a website that users can add the courses they are taking. I want to know how should I add the ManyToMany relationship. Such that we can ge
What is the difference between the Model.clean() method and the Model.clean_fields() method?. When should I use one or the other?. According to the Model.clean
I'm doing a project with Django with the following structure: /project /cv /static /configuration configuration.json So a project w
I have created an email id on my cpanel, I want to use it in django. As for gmail we write, EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAI
I had my site up and running, but the admin CSS was not loading, I am not sure what I did that the server did not agree, but now the entire site is down with a
I'm trying to extend the built-in user and add some more information to it. I have two apps in my django project- general and user_details. Inside my user_detai
I'm trying to develop a monolithic Django application with Uncle Bob's clean architecture. The problem is I don't want to miss the powerful abilities of Django
We all have seen this prompt: As far as I know, this is not IP-based location. This is device-based location. I don't want IP-based location because 1) It's no
is it possible to access django related field from model methods? for example, i have an Author with many Books is it possible to access the list of books fr
I have a model in my application: class GRNRFIDSerials(models.Model): grn = models.ForeignKey(Grn, on_delete=models.CASCADE) file = models.FileField(up
l get stuck in this error. l'm fresh user of Django and l m learning it by following steps on Youtube channel. l did everything same but l got this block tag er
my rest_framework authentication and permission classes "DEFAULT_PERMISSION_CLASSES": [ "rest_framework.permissions.IsAuthenticated", "rest_fra
My models.py file is as follows: from django.db import models from django.utils import timezone from random import randint # Create your models here. class Fil
Trying to save a post on a django project I got this error The above exception (insert or update on table "django_admin_log" violates foreign key constraint "dj
I have two models, client and contact model with foreign key relation, I using Django signals to create contact while the creation of the client, but I getting
I have followed the channels tutorial but while running these error throw Version of the packages is channels==2.1.2 Django==2.0.4 what I missed ? in settings
I'm using django-cas-ng framework to authenticate users. The main problem is that the admin page still uses the default login view. Methods used this far: 1.-
how do I use nested categories in django as Im nwe to django and doing this and find some solutions but didnt work anything class MainCategory(models.Model)
I create realtime chat application using websocket frontend(angular) backend(Django).. i want to store messages in to db(mySql)..when i trying to store message