Regarding Django forms

39 views
Skip to first unread message

Nishant Sagar

unread,
Sep 23, 2022, 5:57:42 AM9/23/22
to django-d...@googlegroups.com, django...@googlegroups.com
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 designed using CSS, however, Django documentation suggests that it's good practice to use Django forms.

So how feasible do you think it is for a frontend guy to learn Django widgets from scratch to implement the same thing he can easily do from CSS and JS. As a newbie backend guy, it's not easy for me either to learn frontend tech to implement the same thing in so little time.

So I tried implementing the form without using Django forms but I find it hard to deal with files as there is no documentation I can look up to.

So can we add these to the documentation or it is still advisable to use Django forms?


Thanks and regards,
Nishant 

Sebastian Jung

unread,
Sep 23, 2022, 6:06:30 AM9/23/22
to django...@googlegroups.com
Hello,

I would hire on upworks a cheap developer how show you how to implement such thing. This is relative easy when you know how it works

Regards

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com.

Nishant Sagar

unread,
Sep 23, 2022, 6:33:39 AM9/23/22
to django...@googlegroups.com
Hey Sebastian,

That’s not my concern, all I want to know is, whether is it advisable to implement the form such a way or Django form is a must.

If it is advisable why can't we add those in the documentation and if it is not advisable what's the reason behind it? 

Thanks and regards,
Nishant 

Sebastian Jung

unread,
Sep 23, 2022, 7:22:38 AM9/23/22
to django...@googlegroups.com
Do you want change only a form or do you want also change widgets in this form?

Nishant Sagar

unread,
Sep 23, 2022, 11:41:36 AM9/23/22
to django...@googlegroups.com
I want to make my form save files to a database without using the django form 

Sebastian Jung

unread,
Sep 23, 2022, 11:51:14 AM9/23/22
to django...@googlegroups.com
This is easy you implement it with django forms then copy widget html/javascript code with browser and then implement it 1:1 but not with django forms... But i understand till yet WHY you want without django forms? Yoz cab change django forms/widget 1:1 how do yoz want but this isn't for a beginner easy... So far make what you want

Ryan Nowakowski

unread,
Oct 8, 2022, 6:13:01 PM10/8/22
to django...@googlegroups.com
You can use forms in your view code and use your frontend guy's template to layout the fields manually:

https://www.geeksforgeeks.org/render-django-form-fields-manually/
Reply all
Reply to author
Forward
0 new messages