Problem to style form fields with error

2024-04-24 Thread Guido Luis Dalla Vecchia
Hello! I'm building my first website with Django and I've been stuck for 
the past two months with a problem I can't figure out.
My website has a form with three fields that allow the user to input his 
first name, last name and email.
In my "forms.py" file, I've declared "clean" methods for each field, that 
add the "error" class to them if they don't pass the validation.
In my CSS file, I declared a rule that applies the "background-color: 
lightcoral" to all elements with the class ".error".
The problem is that, when I fill in the "last name" field with invalid 
data, the "first name" field gets marked as invalid too.
I've tried everything I could think of, and nothing has worked. It's 
driving me crazy!! Has anyone ever seen something like this?

Pleas help!!!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/27559637-bab0-4d96-80f8-dd2a565fccd8n%40googlegroups.com.


Problem when styling form fields with errors

2024-04-24 Thread Guido Luis Dalla Vecchia
Hello! I'm building my first website with Django and for the last 2 months 
have been stuck with a problem with my form.
My webpage has a form with 3 fields that allow the user to input his first 
name, last name and email.
I've defined "clean" methods for all three fields in "forms.py", in which 
the class "error" is added to the fields if they don't pass the validation.
The problem is that, when I complete the "last name" field with invalid 
data and click the submit button, both this and the "first name" fields get 
marked as incorrect.

Has anyone ever seen something like this? It's driving me crazy!! I don't 
know what else to try.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/670f57ad-47cc-4a01-b825-af0d426555d6n%40googlegroups.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-24 Thread villeantropist
I am in sir
+2348158951292

On Friday, March 15, 2024 at 8:49:19 PM UTC+1 Jorge Bueno wrote:

> Good evening everyone, I need help in my personal project to create an 
> agricultural and livestock marketplace and an agricultural and livestock 
> social network as a whole.Longer explanation:Farmers and ranchers leave 
> their products in our logistics centers and we publish on the web the 
> products they have brought us, then the customer orders the products with a 
> minimum purchase value to make it profitable and I take care of the 
> storage, packaging and shipping to customers. That is the part of getting 
> the products to the customer. In addition, we also have the part where the 
> producers can talk about the whole process behind it, the tasks they 
> perform daily, anecdotes and they can do it in video format apart from the 
> message if they wish. Currently, the project is in its initial phase. I 
> have created a detailed backlog and configured the repositories for the 
> backend and frontend. Here are the links to the repositories:
>
> Backend: https://github.com/Programacionpuntera/Marketplace-again
>
> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>
> In addition, I have created a WhatsApp group for the project where we are 
> discussing ideas and coordinating efforts. We currently have backend 
> developers and are looking for frontend developers as well, but the more 
> developers we have, the better.
>
> However, I am facing a challenge: I have no programming experience. I am 
> looking for someone who is willing to collaborate on this project, using 
> Python and Django for the backend, and Next.js and React for the frontend.
>
> Please feel free to take a look at the repositories and backlog. Any 
> comments, suggestions or contributions will be greatly appreciated.
>
> Thanks for your time and I look forward to working with you on this 
> exciting project!
> PS: I've had people say they will collaborate on the project but then they 
> don't collaborate on the project, please don't be that kind of person.
>
> Best regards,
>
> Jorge
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e817173f-3cf9-4553-a1ae-c0ad9ec61df9n%40googlegroups.com.