IndexPage.py
------------------------------------------------------------------------ ------------ def index_page(request): lgFrm = LoginForm() #-- I this the only place where I should handle the POST #-- or I could put the function to handle the POST in the Form presented below if request.method == 'POST': #-- Do something return render_to_response('index.html',{'lgForm':lgFrm}) ------------------------------------------------------------------------ ------------ LoginFrm.py ------------------------------------------------------------------------ ------------ from django import newforms as forms class LoginForm(forms.Form): username = forms.CharField(max_length=30) password = forms.CharField(max_length=20, widget=forms.PasswordInput()) handler(request): if request.method == 'POST': #--- Do something ________________________________ From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Sent: Friday, July 18, 2008 11:25 AM To: django-users@googlegroups.com Subject: Re: NEED HELP BADLY On Thu, Jul 17, 2008 at 10:53 PM, Joshua Jonah <[EMAIL PROTECTED]> wrote: Is this the best way to organize the files in Django? Not important, it's personal taste. Although, it is most of the time preferable to use regex group in your URLs rather than GET. It looks much nicer. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---