Hi,

I would suggest the view. So, get the info from the form

form = YourForm(request.POST)

Even better, create another module with utility functions and call your
login method from the view.

On Sun, Jun 19, 2011 at 5:22 PM, Carsten Jantzen <[email protected]>wrote:

> Hi
>
> I have started to build a application using django.
> I am about to receive input from a form.
> Using this input ( login and security code ) and I have to connect to
> another site login and retrive player information.
>
> I am kind confused as to where should the code which connect to the
> remote site be?
>
> I have made a form class, inside this I could retrive the variables
> and make the form connect and return failure to connect or player
> information.
>
> Or should the views handle the form and make the connection and get
> the information.
>
> Or should the information be passed on to a view which handles the
> login and gets the information.
>
> /Carsten
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> 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.
>
>


-- 
Yours,
Nikhil Somaru

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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.

Reply via email to