I am learning to use virtual environments like and I realize that by using the use the virtualenv command: virtualenv env_dj_cuatro my virtual environment is
I cannot get an image to load in Django by following the documentation. I have the following directory structure: And here is a snippet of my code within backe
So, I'm trying to create a polling system internal to django commands for fun and to learn async/django. I'm using django_tenants, although it's not overly impo
I am new to Django and doing a small project where the user logs into a Django powered website and can then upload some images. These images will need to have s
I use this shell script to count the lines of code in a Django project, find . -name "*.py" -type f -exec grep . {} \; | wc -l How can I modify this to not c
Images in the current database have one piece of data. But, I am currently experiencing the following error "GET /images/all/ HTTP/1.1" 401 58" "detail": "Au
In a django 2.0 app I have a model, called Document, that uploads and saves an image to the file system. That part works. I am performing some facial recognitio
I upgraded from django 3.2.5 to django 4.0.4. I know that this 'django.conf.urls.defaults' must be deprecated. My problem is that I don't get this error in the
I am using viewsets like this: class UserViewSet(viewsets.ModelViewSet): """Viewset for model User.""" queryset = User.objects.all()
First of all, I will like to say this is my first question here! (pardon me if this is redundant or duplicated) I am having some problems with calling JS script
I am trying to serve static files in docker volumes for my Django project. Nginx is able to access the files(403) error. I tried to solve this in different way
I am working with an Django application which uses Django 1.8 version. Most of the data we deal with is JSON formatted ones. We are trying to implement any No
I have replaced the user model provided by Django with the one I created but I don't know how to solve the problem in admin can't process anything! it always re
I have replaced the user model provided by Django with the one I created but I don't know how to solve the problem in admin can't process anything! it always re
I have a django project working with HTTPS using django sslserver.I want http to be redirected to https. I tried adding SECURE_SSL_REDIRECT = True which does no
I have made a custom user model. signup and logout are working fine. but I have made a login form using that model. my model name is usersignupmodel. but whenev
I have made a custom user model. signup and logout are working fine. but I have made a login form using that model. my model name is usersignupmodel. but whenev
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've got a bunch of django_mark_safe errors >> Issue: [B703:django_mark_safe] Potential XSS on mark_safe function. Severity: Medium Confidence: High
I am trying to run the following test: tests.py from rest_framework.test import APITestCase from myapp.routing import application from channels.testing import W