Skip to main content
The 2024 Developer Survey results are live! See the results

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.

0 votes
0 answers
8 views

How To Register Model For Admin Page in Core App?

I defined a model (File) in core app(uploader) and tried to register it for admin page but didnt work. then i tried adding core apps name to installed_apps in setting . after that admin page shows ...
1 vote
0 answers
267 views

How to startapp from inside docker-compose [duplicate]

I have a problem in the steps of testdriven.io The definitive guide to Django Celery, when i want to start a new tdd app if i execute these commands ` $ docker-compose exec web bash (container)$ ./...
-2 votes
0 answers
36 views

An error occurred (BadDigest) when calling the PutObject operation (reached max retries: 4): The Content-MD5 you specified did not match

I am trying to retrieve an image via Javascript function that calls a function from my views that has the image. I need help with populating the image: Views: def customer_logos(request): print(...
0 votes
0 answers
5 views

Error while trying to connect Django With ReactNative

I am building a React Native app with Django as the backend. I have set up the login screen in React Native and configured JWT authentication with rest_framework_simplejwt in Django. However, I ...
0 votes
0 answers
2 views

Heroku DB Connection Limit hit when using Python ThreadPoolExecutor

I have a Django app hosted on Heroku. Some user requests to this app require making long-running queries to external resources. In order to get around the Heroku 30 request timeout, I created a system ...
0 votes
0 answers
14 views

I can't open server in 0.0.0.0 instead it is working in 127.0.0.1 in while using Docker , Django and Postgres [duplicate]

I am a newbie to this. settings.py file is: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'postgres', 'USER': 'postgres', 'PASSWORD':...
22 votes
5 answers
20k views

Store Django Log messages in a database?

Django (the python web framework) uses python's logging system to store logs. Is there an easy way to store log messages in a database, and then allow admin users to look over them via the web? It's ...
1 vote
1 answer
2k views

"file wasn't available on site" error while it does exist, Django

I am programming a web that gets a .csv or .xlsx dataset, processes it, and returns it to the user using Django. I should say it is working OK on localhost. but not in a real server. views.py for ...
0 votes
1 answer
25 views

Django where to store model-level variables

So I have my model: from django.db import models x_default_coordinate = 0 y_default_coordinate = 0 class Model(models.Model): location1 = gis_models.PointField( srid=4326, default=Point(...
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 ...
26 votes
13 answers
28k views

Why I am getting "Not Implemented Error: Database objects do not implement truth value testing or bool()." while running makemigration cmd in django

I am trying to connect Django with MongoDB using Djongo. I have changed the Database parameter but I am getting this error Not Implemented Error: Database objects do not implement truth value testing ...
1 vote
0 answers
20 views

Custom email validation in django form

In my django Account app I have a model for Account class Account(AbstractBaseUser): wallet_value = models.DecimalField(max_digits=10, decimal_places=2, default=0.00) first_name = models....
0 votes
1 answer
37 views

KeyError at /verify/ 'order_id'

I have a problem on my store site, when I want to confirm my order, when I click on confirmation on the payment page, it gives this error instead. the error Internal Server Error: /verify/ Traceback (...
0 votes
0 answers
17 views

I get an error while running django project [closed]

Manage.py file looks like this: #!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): ""&...
0 votes
1 answer
29 views

How do I send 401 response with custom login_required decorator after Django session expires?

I have a custom login_required decorator that looks like this: def login_required(function): """ Ensure that user is logged in """ def wrap(request, *...

15 30 50 per page
1
2 3 4 5
20858