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

All Questions

Tagged with
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
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(): ""&...
chege mungai's user avatar
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, *...
Vroom's user avatar
  • 1
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 (...
Arsham's user avatar
  • 11
0 votes
0 answers
14 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
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(...
Shmuelt's user avatar
  • 131
-2 votes
0 answers
42 views

My partner and I are running the same code, but mine is the only one not working on my local server [closed]

We are working with Django to perform an asynchronous export task that will populate a CSV with information and then download the CSV automatically to the user's Downloads once a user hits the button '...
displayingmyname's user avatar
0 votes
0 answers
20 views

How to implement Django WebSockets?

I'm trying to create a simple Django app, using websockets for sending data. According to the documentation: I've added 'channels' in settings.py's INSTALLED APPS: INSTALLED_APPS = [ "...
Deyan's user avatar
  • 3
0 votes
0 answers
25 views

Django debug toolbar is not displayed

I just installed debug toolbar for my django project like allways. but I don't know why doesn't the debug toolbar display?! and I have to add that I'm using docker and it's my first time that use ...
Sobhan Saeedi's user avatar
1 vote
0 answers
30 views

Field is filled but still get ValidationError this field is required in [duplicate]

I want to create User using User.objects.create_user and I am using some fields of a form Utilisateurs to do that. The image field and username field from this form are also used to populate a model ...
Lord vic's user avatar
-2 votes
0 answers
27 views

I'm unable to run my django application, but nothing happens [closed]

I have a django project and I'm trying to run it with '''python manage.py runserver ''' but nothing really happens. I was working on it just 5 mins before this happens. Now, I'm unable to run anything,...
Neiheel's user avatar
0 votes
1 answer
24 views

how to show user in TokenSerializer dj-rest-auth

I'm trying to return UserSerializer after successful login through dj-rest-auth. I followed the steps that were told in After login the `rest-auth`, how to return more information? which has a similar ...
Damir Talipov's user avatar
2 votes
0 answers
25 views

Custom Django Transform with case statement for casting a string to either int or null

I'm trying to create a custom django lookup as_int so that you can easily compare and order the contents of text fields when they contain only a number, and treat them as NULL when they have the wrong ...
Daniel Gordos's user avatar
0 votes
0 answers
33 views

How to debug HTTP 400 Bad Request errors in django?

I have an app with React frontend and Django backend. I'm trying to make a POST request from my react client but I get "Bad Request" error. I checked my request url and it matches with my ...
brknarsy's user avatar
  • 129
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/* ...
whitebear's user avatar
  • 12k

15 30 50 per page
1
2 3 4 5
10600