Skip to main content

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
0 answers
27 views

Can someone check what is wrong with my code in Django?

So, I just made a CRUD in Django and now I want to test it and the Create and Delete test is working with these commands in cmd: CREATE curl -X POST http://localhost:8000/user/ -H "Content-Type: ...
marc.mitrasca's user avatar
0 votes
0 answers
4 views

How to get Django's makemessages to use existing app translations instead of duplicating them?

How do I get makemessages to ignore already-translated strings? In Django 5, I am running ./manage.py makemessages -l fr I have also copied templates/registration/registration_form.html from the &...
dfrankow's user avatar
  • 20.9k
0 votes
1 answer
14 views

Configuring two different django-cookie-cutter generated projects to run on the same server

How can i run two different django-cookie-cutter generated projects on the same server. The projects are generated using Docker. I guess we should change the ports to avoid collisons. But as there are ...
Eric Acevedo's user avatar
  • 1,212
0 votes
1 answer
17 views

Access to fetch at *** from origin *** has been blocked by CORS policy: No 'Access-Control-Allow-Origin' - Microsoft ADFS with Django

I am trying to integrate Auth ADFS with Django App and Angular and I keep getting CORS error. I tried everything but nothing seems to be working. Access to XMLHttpRequest at 'https://login....
Spike Speigel's user avatar
-1 votes
0 answers
21 views

How to remove all clear Django_migrations table WITHOUT losing out on any data in PROD?

Very mainstream problem :- I've a production database in postgres that's connected with my django projects which has multiple apps. I've 2 aspects to look at :- 2.1. I need to delete the migrations ...
Ikshan Bhardwaj's user avatar
0 votes
0 answers
12 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 ...
Akarshan Ghosh's user avatar
-5 votes
1 answer
35 views

while making a change in a price ecommerce app by selecting the different size i get error in unsupported operand type

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\...
Ashish Kumar Thakur's user avatar
0 votes
0 answers
13 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 ...
Aman's user avatar
  • 194
0 votes
1 answer
45 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. ...
JimmyProton's user avatar
0 votes
0 answers
11 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 ...
A N D E U S's user avatar
0 votes
1 answer
15 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": "...
yoshitaka okada's user avatar
-1 votes
0 answers
11 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 ...
Abol's user avatar
  • 39
0 votes
0 answers
18 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 ...
Isaac Fritsch's user avatar
0 votes
0 answers
13 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 ...
Joao Pedro's user avatar
0 votes
2 answers
37 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=&...
Karan's user avatar
  • 784

15 30 50 per page
1
2 3 4 5
20842