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
0 votes
1 answer
43 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
16 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
1 vote
0 answers
15 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
  • 73
1 vote
2 answers
42 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
  • 143
0 votes
1 answer
27 views

Sum an aggerated value in Django

I'm trying to achieve the following SQL query in Django: (The table contains the purchases per each day per each location. I want to get the biggest amount of each location, then group them by state ...
JaWe's user avatar
  • 11
-2 votes
0 answers
44 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
21 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
32 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
25 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
-1 votes
0 answers
10 views

ReactJS useParams for Django equivalent? [closed]

Django Example # urls.py url = [ path('password_reset/<uidb64>/<token>/', views.password_reset_confirm, name='password_reset_confirm'), ] # views.py def password_reset_confirm(request, ...
David L.E's user avatar
  • 103
2 votes
0 answers
26 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
13 views

Django errorlist in form Select Valid Choice

The situation is as follows: I am building a form where I fetch data for some fields from an API. I have tried debugging in every possible way, but I cannot understand why the data is not being ...
Bruno Gomes'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

15 30 50 per page
1
2
3 4 5
10