All Questions
159,029
questions
0
votes
2
answers
23
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 '...
-1
votes
0
answers
19
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-...
1
vote
0
answers
31
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 ...
0
votes
0
answers
15
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
21
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
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():
""&...
0
votes
1
answer
31
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, *...
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 (...
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....
0
votes
2
answers
36
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(...
-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 '...
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 = [
"...
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 ...
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 ...
-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,...