Saturday, February 5, 2011

Re: Best DRY practices for a view function that will be used by all other views.

On Sat, Feb 5, 2011 at 2:21 AM, Ken Chida <ken.chida@gmail.com> wrote:
> Is there a better way to do this?  Maybe I can use a custom template tag?

The only thing you need is some HTML that spits out the form elements
and does a POST to whatever your login URL is. So, you know, do that.

Whether you do it with an include, a template tag, or various other
mechanisms doesn't matter, but this isn't something you should be
trying to account for in the view.


--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment