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.

django
-1 votes
0 answers
8 views

I am recieving a NoReverseMatch error does anyone know what I'm doing wrong?

Im trying to allow the user to edit an existing entry. But when I include new_entry.html `{% extends "learning_logs/base.html" %} {% block content %} <p> <a href="{% url '...
Dokkaebi's user avatar
-1 votes
0 answers
15 views

auto-py-to-exe expected str, bytes or os.PathLike object, not NoneType

I'm using auto-py-to-exe to convert my django project in an exe file but I couldn´t: Traceback (most recent call last): File "C:\Users\gerar\AppData\Local\Programs\Python\Python312\Lib\site-...
Gerar's user avatar
  • 1
1 vote
1 answer
23 views

Attempting to put data from database onto dashboard in Django

So I am following this guide: https://www.youtube.com/watch?v=_sWgionzDoM and am at around 55 mins so far I have the login stuff all working however I am unable to get the dashboard to show my data ...
John.R's user avatar
  • 21
0 votes
0 answers
14 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 ...
Moeid's user avatar
  • 1
0 votes
0 answers
7 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 ...
ahmed's user avatar
  • 23
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 ...
xgf115's user avatar
  • 91
0 votes
0 answers
17 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':...
menpj's user avatar
  • 9
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....
Mahdi's user avatar
  • 21
0 votes
0 answers
18 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(): ""&...
chege mungai's user avatar
0 votes
0 answers
15 views

Django: Error sending email: (530, b'5.7.0 Authentication Required

I am working on a Django project and get the problem with sending email. This is my code in views.py class ForgotPasswordView(APIView): def get(self, request): return render(request, '...
Lâm Đồng's user avatar
0 votes
1 answer
30 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, *...
Vroom's user avatar
  • 1
0 votes
1 answer
40 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 (...
Arsham's user avatar
  • 11
0 votes
0 answers
15 views

django OAuth Toolkit not getting redirect URI

I am using Django OAuth toolkit and using the following code for OAuth implementation import requests from django.http import JsonResponse from django.shortcuts import redirect, render from django....
Johnny's user avatar
  • 1,747
0 votes
0 answers
13 views

How to Display Total Object Count in Wagtail Snippet ViewSet?

I am currently developing a Wagtail project where I use the ModelAdmin to create custom admin interfaces for my models. When using ModelAdmin, the total object count of a model is displayed below the ...
xSkolz's user avatar
  • 63
0 votes
2 answers
34 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 MyModel(models.Model): location1 = gis_models.PointField( srid=4326, default=Point(...
Shmuelt's user avatar
  • 131

15 30 50 per page