I have been working on a search form and it's giving me this error when i open the url or submit the form. I am watching a codemy django tutorial and the only t
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 trying to integrate a functionality on an Ecommerce website in Django, Where visitors are automatically shown local currency base on their country IP addres
I have created a navbar and content can be added from the backend but only the home nav bar shows the icon and the other navbar name is with the same icon. I wa
i have a model course and i also have a model review and rating that allows users rate a particular course. now i want to count all the ratings on each course w
I am building a logistics web application using DRF and i want to set users to withdrawal certain amount, let's say a users withdraw $200, i want the users to g
I have to do some checks all the time with the context proccessor.The value must be 'True' as soon as the user logs in.But when navigating the site after loggin
Problem: I cannot get images to appear on my template plant_detail.html. I think I'm calling on variables incorrectly, but not sure what to change. Context: I c
I am struggling to create the correct prefetch behavior in Django. Here is the outline of the problem: Each Account has DailyQuotes, updated daily at different
If this form submits as invalid, I want to override the htmx and do a HttpRedirectResponse that refreshes the full page instead of just changing the div, #super
I'm trying to add search bar in my application but I don't know how to query a database to gives the things that user's search for. I want when user search for
I have a Cart model and Cartserializers. I am trying to do that is if cart defects exist in the cart and then update the cart by increasing the quantity of cart
In Models.py class Interview(models.Model): Current_Date = models.DateField(auto_now_add=True ) User = models.ForeignKey(User,
I am using Django and I am passing some values to views.py via HTMX So Frist I have a dropdown list with multiple choices <select class="custom-select mb
I have been working on a project on django and it is very similar to instagram and twitter, one of the functions it needs to have is to mention users using "@"
should I be building a function to achieve what I am trying to do?
I want to have a default value in my django model response value Sample model query myModel.objects.filter().values("username", "user_gender") I want to have a
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,
I'm trying to add user Profile in my django project. i was trying to access user post into the user Profile but its throws an error like this: Reverse for 'Pro