I'm discovering Django and I'm trying to develop a simple application. I have three tables in my database : One big table to report all the information to users
I've just started my first app with Django by following a video on YouTube. The app is a students dashboard with 8 tools and features to help the student to mak
In my form's view I wonder what if I don't add product_form.save method in the code below and what if I add that: def form_valid(self, form): product_fo
In my form's view I wonder what if I don't add product_form.save method in the code below and what if I add that: def form_valid(self, form): product_fo
I have an issue on my app that I can't work out the best way to approach the solution. I'm learning Django and have little to no experience in Javascript so any
I have used package "django-yearmonth-widget" to have year and month selection and not complete date. Here, day is fixed i.e. 1st of every month. This implement
https://docs.djangoproject.com/en/4.0/ref/models/instances/#validating-objects from django.core.exceptions import ValidationError try: article.full_clean()
I want to auto populate my update form in django with the existing data, but instance=request.user and instance=request.user.profile seems not to be auto popula
I'm fighting with this problem during several days and can not find the solution for my case. I'm trying to make system of likes without refreshing the page. In
django dont show my form in my template where is the problem? forms.py from django import forms class QuestionForm(forms.Form): massage = forms.CharField(w
I'm testing Django forms handling and trying to test a ModelForm, which form edits the user's data. I tried to write the test in several ways, but each one thro
I created a article models below models.py class Article(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True) is_deleted
I created a magzine model in django. But their are more than three authors of a magzine. I have written below code for three authors. If I write the code of two
I am a noob to django and python 😥 I have a django form, it needs a dropdown menu with input field to enter the text which is not listed in dropdown. Is
I am trying to color cells of an HTML table (which is automatically generated by Python and Django) depending on cells' content. Here is my table. I would like
I am creating an e-commerce website where people can choose to login or not but still the can order and checkout (even if you are an AnonymousUser or Guest user
should I be building a function to achieve what I am trying to do?
I am using custom django forms. It seems that my form is not valid. I can't find the error. Could you help please?? signup.html`
I have following scenario. User fills out a form If the user clicks the "continue" button and the form is valid the user will be redirected to a summary view In
can any one help me with assigning value to a foreign key field. Im trying to create user profile where user can add there countries. when creating the models,