I have tried many things to solve this like adding whitenoise middleware, also added STATICFILES_DIRS = [], added mimetypes for css in settings.py file CSS/JS W
I needed to create a relative path starting with the current directory as a "." dot For example, in windows ".\envs\.some.env" or "./envs/.some.env" elsewhere I
I am trying to build a chat app with Django but when I try to run it I get this error No application configured for scope type 'websocket' my routing.py fil
I'm trying to make a workflow where the user enters data on one page, then has to check the data and tick a tickbox to accept the T&C's. So the code has to
I'm using django + celery, when running django devserver I'm getting exception django.db.utils.OperationalError: no such table: main.django_celery_beat_solars
So i want to make models form to upload file mp3. I was copy the code from website, but suddenly it goes error. Here's error message on the website : Forbidden
The on_commit function has been added to Django 1.9 to be able to trigger an action (e.g. a Celery task) after the current transaction has committed. They ment
I have created a WebAPI for user authentication using Token Authentication built on Django Rest Framework. with the help of Postman I am able to determine that
I have a Django project which involves a user uploading a CSV file via a form. I parse this file in the forms clean method, and then in the views form_valid met
i am trying to retrieve the lastest news from hackernews api, everthing seems to be working fine and when i print the status code, i get Status Code:200. Now i
My web application has the following structure: backend with Django frontend with React. I have a form with React. I send a file from client form and I receive
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()