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.

-2 votes
0 answers
7 views

In django, can the .using('db') keyword take a variable?

Example.objects.using('db').raw() Instead of db could we have a variable that would correspond to the appropriate database?
user avatar
0 votes
0 answers
9 views

Cookiecutter requirements instalation problem

I'm learning Django(just started) using Django Crash Course book and for going on I have to install cookiecutter. There are a template there: gh:roygreenfeld/django-crash-starter. I activate venv, ...
user avatar
0 votes
1 answer
11 views

How to save file in creating folder when data inserto the data base django

I want to save file in automatically created folder related with Employee id_number. I add following code in models.py from django.db import models class Employee(models.Model): ...
user avatar
0 votes
0 answers
16 views

Editing the 1st Row using Django Forms is not working, but working for the rest rows. How to rectify it?

I have a Django Form which has a problem. It is not editing the 1st row of the table of the database fetched in the template and working fine from 2nd rows onwards. The issue seems to be with the ...
user avatar
1 vote
0 answers
12 views

Why does gevent give "Too many open files" error during load testing?

I have a setup consisting of nginx, gunicorn, and django. All these run through docker containers. In django, when a request comes, I save image files that are sent through request. Since my code is ...
user avatar
0 votes
0 answers
8 views

Image persistence issue in Heroku [duplicate]

I have deployed my Django backend in Heroku, and connected to the Heroku PostgresSQL database. However, I noticed that the images are not persistent; after a while, the images disappear. It must be ...
user avatar
0 votes
0 answers
11 views

" Invalid or incomplete introspection result" error when i load the graphql endpoint for my django project

I have a Django project where I am using Graphql but after writing out only one mutation, the /graphql does not run properly, throwing the following error. { "message": "Invalid or ...
user avatar
1 vote
0 answers
12 views

Display SQL Query result into a Django Form

I have a simple BookStore web page that it must return a query result that contains books information. I want to display that into a form and add checkbox before each item so the client can check the ...
user avatar
  • 31
0 votes
0 answers
15 views

sendgrid SENDGRID_ECHO_TO_STDOUT

Iam looking to use this pkg to send emails in my django app: https://github.com/sklarsa/django-sendgrid-v5 and I see the field: SENDGRID_ECHO_TO_STDOUT and the description says: will echo to stdout or ...
user avatar
  • 6,154
0 votes
1 answer
12 views

Send a file to a specific user from the admin page in django

I am on a django project where I want to be sending different work to each of my employees from the admin page, but no one will see other people's work, each person will see their own work in their ...
user avatar
0 votes
0 answers
18 views

Getting "No module named django.core.management" inside vscode

I am running my django app in docker. I have attached this docker container to vscode. Then, I start debugging application, but manage.py, I get following error: No module named django.core.management ...
user avatar
  • 2,059
-1 votes
0 answers
28 views

{'category_name': [ErrorDetail(string='Incorrect type. Expected pk value, received str.', code='incorrect_type')]}

I am new to django postgresql and I have been making a CRUD with Products having categories,sub categories,colors,size.When I am trying to make a new "category" the data isnt getting ...
user avatar
0 votes
0 answers
17 views

Why is the data on my heroku website different from data on local dev?

New to django I tried setting up a postgreSQL db and it works fine. I use Retool to access the db and I can see the data I am adding when I modify my website locally through the admin site, but data ...
user avatar
0 votes
0 answers
6 views

Generating all third-party Django apps endpoints with drf-yasg

Is there a way for generating all third-party apps endpoints with drf-yasg? So I have installed social_django app and want to include all URLs it provides to swagger UI My urlpatterns urlpatterns = [ ...
user avatar
0 votes
0 answers
16 views

navigation bar not perform well in my Django project

I had created a horizontal navigation bar on top of my page. I use code on w3school and tryied javascript snippet from stackoverflow post I found months ago. I'm using Django. I met 2 issues I can't ...
user avatar
  • 1,063

15 30 50 per page
1
2 3 4 5
19516