I am new to Django and I am having a issue sending a DELETE request to a class based view which inherits from APIView. Here is my class: class PageDetail(APIV
i have a model class Category and also a model class Course. i want to count all the courses that are related to a model e.g: Web Devlopment - 26 Courses i dont
I am using the latest version of django elasticsearch dsl and I am using the following command to index around 80 million documents: python manage.py search_ind
Upgraded pip command still having this message. I am trying to install django-allauth. The following error is generated while using pip install django-allauth (
I am deploying a django site for the first time to a cpanel server with phusion passenger on cloudlinux and i have discovered a weird phenomenon that can't be n
Here's the SS of import error And this is the SS of CSV file Line number: 1 - 'id' Traceback (most recent call last): File "/home/carlmark/Desktop
i want to create chat app, i follow the https://channels.readthedocs.io/en/latest/tutorial/part_2.html here, chat/ __init__.py routing.py urls.py
I haved Format_List model with relation with Django user and now I want to get the data belongs to specific user by giving user id or after user login. models.p
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
I'm using Django Rest Framework to serve an API. I've got a couple tests which work great. To do a post the user needs to be logged in and I also do some checks
I new to both Django and LDAP. I am creating a Django application with LDAP authentication as the login system. I am able to connect to the LDAP server and auth
How to hide labels in Django inlines?
this is my views : rooms = [ {'id': 1, 'name': 'room-1'}, {'id': 2, 'name': 'room-2'}, {'id': 3, 'name': 'room-3'}, {'id': 4, 'name': 'room-4'},
I have next models class User(AbstractUser): ip_address = models.CharField(max_length=15) class Statistic(models.Model): user = models.ForeignKey(User
I have this code: print(f"DEBUG 1: {queryset}") transaction_items = queryset.all() queryset.update(status=TRANSACTION_STATUS_COMPLETED, processing_method=PROCES
Login and Log out is only working for admin panel , not for user panel , after loging in from user end , its not getting reflected in the home screen . The defa
I am building a webapp in which users place orders with nested information. I am after some advice on best practice so I can do some more research. The idea is
I am working on a Django project, which integrates a webcam and OpenCV. For the webcam access, I use following code. The webcam can be released if I use Ctrl +
I want to set the bearer token in the authorization header. why? Because I am using rest_framework_simplejwt in my Django project. I want to implement authoriza
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