Skip to main content

All Questions

Tagged with
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 ...
Леонид Селеззнев's user avatar
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 ...
dhrumil barot's user avatar
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....
Aarav Kumar's user avatar
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") ...
Khoa Nguyễn's user avatar
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 ...
Abel Bekele's user avatar
0 votes
1 answer
42 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?
alireza keshavarz's user avatar
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 ...
Asilbek Qo'ldoshev's user avatar
0 votes
0 answers
75 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 ...
TheLostChild's user avatar
0 votes
1 answer
31 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 ...
paxanoA1607's user avatar
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....
Newbie Programmer's user avatar
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 ...
Lucas Marques's user avatar
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 ...
Ukasha Hassan's user avatar
0 votes
0 answers
70 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 ...
Newbie Programmer's user avatar
1 vote
2 answers
185 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 ...
General Suslik's user avatar
0 votes
0 answers
42 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 ...
baranbicher's user avatar

15 30 50 per page
1
2 3 4 5
90