Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Dec. 22, 2010 21:58:31

h.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Where Are Forms Built


I've seen how to build my own forms in the documentation and how to
import the Django base forms class, but where does the code to build
my own screens get put? Is it supposed to be put in the views module
for my app or somewhere else? I'm guessing it goes in the views, but
that's only my best guess.

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 22, 2010 22:02:30

r.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Where Are Forms Built


> I've seen how to build my own forms in the documentation and how to
> import the Django base forms class, but where does the code to build
> my own screens get put? Is it supposed to be put in the views module
> for my app or somewhere else? I'm guessing it goes in the views, but
> that's only my best guess.

Wherever you like. A lot of people will add a forms.py module to any
app that uses custom forms. You can then import your form classes
into views.py for use in views. The views are where you process the
form and views + templates deal with displaying them.

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 16th of August
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support