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, with a special focus on less code, no-redundancy and being more explicit than implicit.
django
312,617
questions
0
votes
0
answers
5
views
Keep getting error while uploading Django project in vercel
while i am deploying my Django project using vercel i am keep getting this error
Error: No Output Directory named "staticfiles_build" found after the Build completed. You can configure the ...
-3
votes
0
answers
10
views
while making a change in a price ecommerce app by selecting the different size i get error in unsupported operand type,please resolve this problem
unsupported operand type(s) for +: 'int' and 'str'
Internal Server Error: /product/t-shirts/
Traceback (most recent call last):
File "C:\Python311\Lib\site-packages\django\core\handlers\exception....
0
votes
0
answers
5
views
SSL handshake issue
I have a code that sends api request to an api endpoint, and prints data. It works well in my local machine. But when I deploy it to my ec2, it stucks after sending request to api endpoint. My ec2 is ...
0
votes
0
answers
30
views
azure app service headache...cant' deploy app
I'm not even sure where to begin. Been stuck on this for weeks. azure support no help
tried deploying my webapp via the
az webapp up --runtime PYTHON:3.9 --sku B1 --logs
command as per the tutorial.
...
0
votes
0
answers
9
views
Saving an Apache Echart causes tainted canvas error
Saving the chart via the toolbox.feature.saveAsImage causes an error that says Tainted Canvas may not be exported. However, saving the image manually via right-clicking on the chart itself works just ...
0
votes
0
answers
9
views
In Django CI, githubactions try to another database for testing
This configuration refers to portfolio_db when running the server normally, and refers to test_portfolio_db during testing.
DATABASES = {
"default": {
"ENGINE": "...
-1
votes
0
answers
9
views
HTML chat form is not stable - Django site
I have a django site which has a chatapp on it. the problem is the chat-content form in the chat app is not stay in the bottom of the chat page and user should send a lot of messages to come down the ...
0
votes
0
answers
11
views
How can i create an event after a redirection with htmx?
If I have a code snippet like this::
response = HttpResponse(status=204)
response["HX-Redirect"] = request.build_absolute_uri('/perfil/')
response['HX-Trigger'] = 'useredited'
return ...
0
votes
0
answers
12
views
Django is saving UUID without dashes in MySQL
I'm creating a Django application that uses UUID in some models. While i was using a MySQL database locally django was creating the UUID and saving it without dashes. Everything was working. Now i'm ...
0
votes
2
answers
35
views
Banner is not displaying at the top and css is not working
I have html like following, in my Django project
<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name=&...
-2
votes
0
answers
17
views
My project is not recognizing my static files and I am using Django
I have been trying to run my project on the local host
But my project is not displaying the template in the normal wayenter image description herethis the error it giving me.pls is there anybody who ...
0
votes
1
answer
12
views
Filtered reverse of a one to many relation in Django
I have a model called Item and another called ItemSynonym with a one to many relation like so:
from django.db import models
from django.conf import settings
from project.utils.models import UUIDModel ...
0
votes
0
answers
12
views
How to Create a Token Using Django REST Framework?
I am trying to implement token-based authentication in my Django project using Django REST Framework, but I am unsure of the steps required to create and manage tokens.
I Installed Django REST ...
0
votes
0
answers
17
views
Jinja tags: Not Loading
labels: [{% for task in task_distribution %}'{{ task.task }}',{% endfor %}],
datasets: [{
label: 'Tasks',
data: [{% for task in task_distribution %}{{ task....
0
votes
1
answer
11
views
Entries not showing on page
Cant seem to figure out why my entries from my database are not appearing on my page but my topics name on the entry page is
I'm trying to show show entries from my database on a page, the link to the ...