Re: Regarding Django forms

2022-09-27 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi! I think you've found the wrong mailing list for this post (django-developers). This mailing list is for discussing the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this

Re: Regarding Django forms

2022-09-23 Thread Kiet Lam
Why don't you also use the context and pass in an array to be rendered at the htm? There are too many repeating and hard code elements that could have been done with a single foreach statement. On Sat, Sep 24, 2022 at 2:27 AM Kiet Lam wrote: > Hi Nishant, > Yes. I would stick to using Django fo

Re: Regarding Django forms

2022-09-23 Thread Kiet Lam
Hi Nishant, Yes. I would stick to using Django forms. It has a lot of inbuilt security protection that is easily implemented at the front end like CSRF. Cheers, Kiet On Fri, Sep 23, 2022 at 3:56 PM Nishant Sagar wrote: > Hey forks, > > I’m in little dilemma regarding Django forms. I'm working o

Re: Regarding Django forms

2022-09-23 Thread Nishant Sagar
That's what I wanted to know Thank you sir On Fri, Sep 23, 2022 at 7:42 PM Ken Whitesell wrote: > Absolutely. > > If you're using Django, then *use* Django. Take advantage of all the > facilities it provides you. > > Yes, it's a little more work on your part to convert this to a Form-based > te

Re: Regarding Django forms

2022-09-23 Thread Ken Whitesell
Absolutely. If you're using Django, then *use* Django. Take advantage of all the facilities it provides you. Yes, it's a little more work on your part to convert this to a Form-based template. But what it provides you are all the facilities available within Django forms for data validation a

Re: Regarding Django forms

2022-09-23 Thread Nishant Sagar
And one more thing, why is radio btn returning 'on' even if it is not selected? On Fri, Sep 23, 2022 at 7:36 PM Nishant Sagar wrote: > That's the whole point. I've attached my form.html file, do you think it's > a generous idea to design the whole form page using widgets if I already > have the

Re: Regarding Django forms

2022-09-23 Thread Nishant Sagar
That's the whole point. I've attached my form.html file, do you think it's a generous idea to design the whole form page using widgets if I already have the form template ready? {% csrf_token %} Registration form Name of Homeowner : Roof Age : Email ID : Phone : Full Home Ad

Re: Regarding Django forms

2022-09-23 Thread siyamak abasnezhad
You can use widget Tweeks or crispy On Fri, Sep 23, 2022, 09:26 Nishant Sagar wrote: > Hey forks, > > I’m in little dilemma regarding Django forms. I'm working on a project as > a backend guy who doesn't know much about CSS and JavaScript so a frontend > guy delivered me a form template designe