On Thu, Jun 25, 2009 at 12:12 PM, Technicalbard <rodwe...@gmail.com> wrote:
> > My reading of the documentation isn't clear on where form definitions > could or should be defined. Is it better to define forms inside an > apps views.py file, or should I put the form definitions into a > separate forms.py file and import it into the views as necessary? The > latter seems more reusable. Does anyone have reasons to do otherwise? > > > There is no requirement on where they need to be, you could put them in purple_hippos.py for all Django cares :). However, in practice most people put them in forms.py, since it's a nice clean, obvious place for them. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---