Category "django"

How to fix "InternalError: variable not found in subplan target list"

I have a legacy Django project (django-1.1.29) and some tests in pytest (pytest-4.3.0), all running inside Docker. The database is PostgreSQL 10 and is a docker

Testing Django FileResponse

I have a Django view that returns a file. The FileResponse is built for that purpose. However, I do not understand how to test this. Right now I use the HttpRe

Django REST: Files\Images Uploading

Im want to upload an image using Vue.js and Django-rest. And have few problems with it. Im trying to use put request (as in docs) and FileUploadParser for it,

Custom SRID in Django-Leaflet

I'm having trouble specifying a custom SRID with django-leaflet. The documentation on projections isn't very detailed, and mentions only briefly: By defaul

Passing django.core.mail.EmailMultiAlternatives instance as async_task with Django-Q

An E-mail template is build-up and send weekly to more than 2000 email recipients (bcc). I must run it as background since it takes few minutes to get rendering

How to display Foreign key Data in Django view page?

i have relation between Project and ProjectFloorPlan, and i want to display ProjectFloorPlan data in my template. Please let me know how i can display the Forei

How to display Foreign key Data in Django view page?

i have relation between Project and ProjectFloorPlan, and i want to display ProjectFloorPlan data in my template. Please let me know how i can display the Forei

Django Horizontal Scroll on Top of Changelist

I have the same problem as depicted here by mozman2: "In my Django changelist there are lots of columns that means there is a scrollbar at the bottom of the lis

Hide Django logo/name in header Django admin tool

I want to hide/change the name displayed in the header bar, the label that I want to change is "DJANGO" word as the next image shows"

Django CheckboxSelectMultiple not displaying in ModelForm

I'm trying to use CheckboxSelectMultiple in a form, instead of the SelectMultiple default. I tried two different ways to make it display as checkboxes, but they

Date Picker does not shown up

I am new to frontend development. Normally I do backend and infra. During the daytime I heard from the frontend-angular guys talking on datepicker widget a lot.

How to resolve AssertionError: .accepted_renderer not set on Response in django and ajax

While I am calling Django url in ajax, getting below error AssertionError: .accepted_renderer not set on Response. This is my code: function download(){

Docker : compose file is incompatible with Amazon ECS

I am trying to deploy my docker image in AWS ECS. I have created the ECR repository and done all required steps till pushing the image to ECS. My docker-compose

Authorization: Any Benefit of OAuth2 for First-Party Web and Mobile Clients

I would like to know whether there is any security benefit to using OAuth2 for authorization where all clients are developed, owned and controlled by the API de

Authorization: Any Benefit of OAuth2 for First-Party Web and Mobile Clients

I would like to know whether there is any security benefit to using OAuth2 for authorization where all clients are developed, owned and controlled by the API de

Getting TypeError: __init__() missing 1 required positional argument: 'on_delete' when trying to add parent table after child table with entries

I have two classes in my sqlite database, a parent table named Categorie and the child table called Article. I created first the child table class and addes ent

wsgi error: Address already in use - socketio/django/apache2

My project is created with React (create-react-app), React router (no webpack), -- Django (rest) and Socketio with eventlet on the backend. I have 3 problems wi

I'm try to deploy my django project in Heroku by use Heroku CLI I face installation error

Everything goes right till I run this command: git push heroku master I get this massages: git push heroku master Enumerating objects: 55, done. Counting objec

[Django][AWS S3] botocore.exceptions.clienterror an error occurred (accessdenied) when calling the PutObject operation

I am trying to connect Django project to AWS S3. settings.py contains below: AWS_ACCESS_KEY_ID = #ID AWS_SECRET_ACCESS_KEY = #Key AWS_STORAGE_BUCKET_NAME = #B

django-filter checkbox ajax

I am trying to implement django-filters + ajax(jquery) after sending the request, the selected checkboxes "disappear" I have little experience yet, tell me how