Questions tagged [django]
Django is an open-source server-side web application framework written in Python. It is designed to reduce the effort required to create complex data-driven websites and web applications, focusing on less code, no redundancy and being more explicit than implicit.
django
140
questions
0
votes
0
answers
28
views
Validation in DR(Django)
I'm trying create customs validations to my serialiazer but Django just ignore them and return me DRF default errors.
{'message': 'Erro ao criar camião', 'data': {'plate': [ErrorDetail(string='This ...
0
votes
0
answers
14
views
Django app deployed to under the url subdirectoly
In my server,django and nginx is deployed on ECS fargate and connected to loadbalancer, but URL is transferd by Akamai
https://www.example.com/company/playground/* -> https://amazonloadbalancer/*
...
0
votes
1
answer
32
views
Django Inline Formset data not saving
I have created an inline formset which works exactly as I planned on the frontend side-
However I can't seem to access any of the data- it seems like the form isn't saving the data?
Here in the views....
-1
votes
1
answer
36
views
Is the batch processing speed of Python slower than that of Java?
I am working on migrating a function implemented in Java Spring Boot to Python Django.
I encountered an issue while migrating a function that retrieves a list of keywords through a select query and ...
0
votes
0
answers
28
views
Payment Gateway Integration with Django
I'm integrating payment gateway APIs in my application (Django). I have written a class PaymentGateway that provides all the methods for all payment related utility. The __init__ initialises the ...
-1
votes
0
answers
24
views
Django Auto Assigning Author to the user creating the post [closed]
I am having an issue with my Author being auto-assigned, it was previously working but has stopped working since I added some inline formsets-
Here is my model:
class Recipe(models.Model):
title = ...
0
votes
0
answers
28
views
binascii.Error: Invalid base64-encoded string: number of data characters (41) cannot be 1 more than a multiple of 4
I'm trying to use py-vapid, pywebpush, and django-push-notifications to send notifications via Webpush. When I try to send a test notification from the django admin website, I get this traceback log ...
0
votes
0
answers
14
views
COUNT(DISTINCT <col>) without GROUP BY
In Django, Count("col", distinct=True) can be used to perform COUNT(DISTINCT col) but it automatically adds a GROUP BY so is there a way to prevent that from happening so the distinct count ...
0
votes
0
answers
35
views
Why we should install postgresql in the Django container?
Why is necessary install postgresql as dependency in a Django backend container?
the Django app is intended to connect to a PostgreSQL DB running in a separate container.
I have the next Dockerfile:
# ...
0
votes
0
answers
23
views
Better directory structure for Django projects with git perspective [closed]
I'm new to Django and trying to decide between two different directory structures. I want to understand the implications of each structure from git perspective and also which one is more favorable in ...
0
votes
1
answer
23
views
Incorrect redirection to login page from profile and logout links after user login
Context
I'm working on a Django project where I have implemented user authentication with profile and logout functionality. The issue I'm encountering is that when I try to access the profile or ...
1
vote
0
answers
32
views
How to create a node in neo4j using Django
I am working on a web app. For the backend I chose Django and as a database, I would like to use a graph database so I chose neo4j.
There is a Python library neomodel to work with neo4j and a specific ...
0
votes
0
answers
16
views
Concurrency Control Mechanism For Dataframe Processing In Django WebApp
I have django webapp where processing excel file data directly using pandas dataframe. now, I want to make this operations concurrency control for multiple request processing simultaneously. suggest ...
-3
votes
1
answer
33
views
Invalid block tag on line 1: 'include'. Did you forget to register or load this tag? [closed]
During a Django tutorial I've got an issue with the index.html file. I can't handle this exception:
Invalid block tag on line 3: 'include'. Did you forget to register or load this tag?
I really don'...
0
votes
1
answer
16
views
Importing rembg in Celery Task breaks workers
I'm trying to use the rembg library in a Celery worker (Django), but once I import the library, the worker is exited prematurely:
objc[47160]: +[NSCharacterSet initialize] may have been in progress in ...