I have a form where I want request.user to populate as little as possible and rely on the views to populate other fields automatically. As a result, ...
I have a form where I want request.user to populate as little as possible and rely on the views to populate other fields automatically. As a result, ...
I have a requirement to upload a zip file with the click of an upload or save button. Then, when the user clicks on the "run" button, the uploaded fil ...
Is it possible to change the 2nd code into the first code?? it shows some kind of error ...
I have created a booking form using Django forms. For selecting a time I have a series of choices. However, I want to only display those choices in th ...
I have my model called Game that has a ManyToMany field. That ManyToMany has some additional attributes I have a page where I want to create/edi ...
I tried to save a record using two different methods but both are not working. Django Form Models (create method) 1 I have created a ModelFor ...
models.py forms.py views.py subscriber_form.html Only my submit button is publishing, however the form is never showing up for me. I have ...
I'm building an application that contains a list of meals, where each meal has various filters, a price, and a rating. The filters are like tags; the ...
I am trying to use a ModelForm to create a new model in my database. The thing is, it's not saving it to there when I call form.save(commit=True). I ...
When I try to click on login button it always execute the invalid credentials instead of redirect to the index page.. What I did is that in database c ...
I was working on my project and i found a bug in my AbstractUser Model. I have certain fields set to null=True and i realized that whenever i create a ...
Why django throws me an error TypeError at /primary argument of type DeclarativeFieldsMetaclass is not iterable. I'm trying to work with django-forms ...
Hello there, I'm trying to do a form that can store the customers records, but recently it's throw me this error TypeError at /crear-cliente/ objec ...
I have a function in django management commands that should take a url as an argument it doesn't matter what the function is, everything in it work ...
Am building a USSD app that requires me to send a return JsonResponse but i want to do it without using Return. Beacuase i want to a couple of things ...
Hello I have a django project for calorie tracker and when I go to fooditem_create url I get this error : FoodItemCreateView is missing a QuerySet. D ...
I am trying to save my form in my data base. But my code adds a new row instead of save changes to the existing one. where is my mistake? view.py ...
community! My goal is to create an app, which takes some user input, does machine-learning stuff and shows the results. I want to know whether the re ...
I have a Model with a lot of entries, so I'm using django-filters to filter the model, I initially load an empty table and from there I use the filter ...
I'm trying to use my Zoho account within my django project, in order to receive emails via contact forms. I also followed this guide: https://www.zoh ...