Category "django"

Problem to install django proyect in IIS server windows 2016

I need help with the following problem: raise RuntimeError('No Apache installation can be found. Set the ' RuntimeError: No Apache installation can be fou

How to Kill all Celery background proces

Killing all celery processes involves 'grep'ing on 'ps' command and run kill command on all PID. Greping on ps command results in showing up self process info o

error in migration with legacy database in Django

I'm working on creating a filter in django where the options displayed are coming from a new column in the database. It turns out that this column was created d

404 for static images and media in Django in Production Mode

I am beginner in Django I am trying to run my application on Debug=False mode to simulate the production environment, I have added all the static url, and roots

Django: user visits package selection

What is the difference between the following packages: django-visits 0.1.6 (released on Jun 16,2014) and django-user-visit 0.5.1 (released on Sep 29, 2021)? If

Django WebSocket connection to 'ws://127.0.0.1:8000/ws/chat/8_9/' failed:

I am doing a Django project in which I have added a live chat feature using Django channels. When I finished the messaging part I worked on other parts of the p

Django allauth Facebook and Google login

For normal signin/signup i'm using django's default singin/signup, but in facebook and google login i'm using django allauth, and to implement django allauth i

How to separate tables based on the model using FSM and FSM-Log?

I'm currently logging status changes to several models in my Django REST API using the django-fsm and django-fsm-log packages. However, all of the logs are stor

Pylance Intellisense not working as expected with Django

I'm trying to understand how to configure Pylance to make it work correctly in my Django project. Below is one of many examples where Pylance is not able to fin

how to add data to database in django

I send the data I get from websocket with javascript to the view.py section of python-django with var xhr = new XMLHttpRequest() ///. my question is; The data c

I'm trying to return mutliply queryset

I have endpoin called groups I want to return to each user groups that he created and the groups that he member in it my model class Group(models.Model): ti

How to convert a view to a pdf in Django?

I need to render PDF files dynamically in a Django web app. I understand there are 2 options : Render an html template file then convert it to a PDF file. Conv

Is there any solution to fix this Cors error?

I have made an api from django but when I call from my react app It gives CORS error my settings.py INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.

Auto-submit django form without causing infinite loop

I have an issue on my app that I can't work out the best way to approach the solution. I'm learning Django and have little to no experience in Javascript so any

Tailwindcss LSP for Neovim root_dir issue

I am having an issue with the Tailwind LSP in Neovim 0.5 where the language server running however I get no intellisense when defining a class. I am working on

Extract multiple start date and end date from a string in python?

I am making a resume parser but I want to know the years of experience of the person from the experience section and want results like if there are 3 years of e

How to handle Firebase Cloud Messaging Notifications in Django?

I am managing to send FCM notifications to my app through Django. Here is my function for pushing notifications: import firebase_admin from firebase_admin impor

Django: How to run a celery task only on start up?

I have a django app that uses celery to run tasks. Sometimes, I have a "hard shutdown" and a bunch of models aren't cleaned up. I created a task called clean_up

How to get VScode Integrated Terminal Virtual Environment working?

I have completed a few courses online in Python and recently started a new course in Django. Previously I always used a virtual environment but would activate t

django-filter list of links

I'm using django-filter's ChoiceFilter to generate a dropdown to filter results and it works great. However a dropdown is not what I have in mind for the design