All Questions
1,337
questions
0
votes
0
answers
29
views
How to correctly display static files in Django when debug = False?
what should I do if I used a command python manage.py collectstatic and don’t understand what needs to be done in order for static files to be located and displayed, i get only 404 when i try to load ...
0
votes
0
answers
63
views
backend not responding with domain but responding with ip
I have setup 2 different servers for frontend and backend. frontend server is accessible with ip and the domain both.
all api requests are being processed by backend long as it comes from the ip. but ...
0
votes
1
answer
39
views
What is causing the route to change (ikely because form is submitting), i also added return false in the function?
I am currently building a single page web app and wanted that js handle the form submission and so that route remain the same. But when i click the submit button route changes,
JS Code:
document....
1
vote
1
answer
27
views
Refer to another model and count its ManytomanyField
I have two models:
class Post(models.Model):
content = models.TextField(blank=False)
author = models.ForeignKey("User", on_delete=models.CASCADE, related_name="author")
...
0
votes
0
answers
39
views
When I export with the command flutter build app it generates complex JavaScript code, but I want only HTML, CSS and JavaScript code, is it Possible?
When I exported my project with the command flutter build web. It generated complex JavaScript code, but I want only HTML,CSS and Javascript code. Is it Possible? I have intended to make the front end ...
0
votes
1
answer
43
views
Location of signals in Django
I am confused about the use of signals.
Where should I put the signal codes so that they are orderly and appropriate?
I have a signal file for an app. Where do I call it?
0
votes
0
answers
68
views
How to make a form that can add an unlimited amount of elements
I'm trying to make my schools web-site for students. In this site i want to allow them create project page. In project page I want to allow them to upload unlimited number of files that can be ...
0
votes
0
answers
76
views
Forbidden (403) CSRF verification failed. Request aborted even though the csrf token is present
I am making a project in Django for an NGO. I keep running in the csrf toke missing error.
I have the {% csrf_token %} tag in the form tags. The csrf is working on other forms but isn't working on ...
0
votes
1
answer
32
views
How to render different dict into Django Views
I've been learning django recently and I am struggling when sending over 1 dictionary into a template in Django
I have my embedViews.py which has multiple classes according to different sections of ...
0
votes
1
answer
35
views
cannot accept the name from user input and the file does not enter the image directory located in the scanner directory App
So this program runs smoothly status code 200 and Developer Status does not show error code, I have checked in the models, views, and forms files but the logic of running the system I think is correct....
0
votes
0
answers
50
views
Choose a directory from user pc with django
I'm developing a django application (my first time using it) where I need to store a user directory on the database, for that I've extended the user model to add one charfield:
from django.db import ...
0
votes
0
answers
44
views
Multiform nested data
Hey there i am trying to serialize the multiform nested data but i have tried everything but nothing works for me and also i did not get any kind of help from internet.
# models.py
from ...
0
votes
0
answers
71
views
Why aren't media files autogenerated in Django?
So i create same project which accepts input from the user in the form of an image. I followed Django step documentation and this. The result I got was correct, I received input from the terminal if ...
1
vote
2
answers
187
views
How to install packages in docker container that has already been started
I am building a django app with docker. After i`ve already built my container, I've added an ImageField to one of my models. When I ran docker-compose run web(my service name) python3 manage.py ...
0
votes
0
answers
43
views
Adding the search button and filter button to a single button in Django
Here I am trying to activate two functions with one button.
How would it be to write the search button and filter system in a single function, as shown in the examples? I used the django filters ...