Newbie with Django, some misunderstanding concepts with views and templates
===

Well, i'm working with Django a few days ago, even i post these days some questions about that matters that are coming to my mind as i developed this site, i'm working in a started project, so most of work are done and i can look up for code to understand what i have to do in my side.

At the beginning i'm doing a simple table for visualize the tasks of employees, these tasks can be filter for employee, date, type of employee, month... for showing up, they recommend me to use a generic view in my urls.py, so i do that and that's it:



    from django.conf.urls import patterns, include, url
	from tareas.models import Tareacobro, Tipotarea, Agentes, Perfil, Tareas
	from django.conf import settings
	from common.generic import view_list

	info_tasks = {'queryset': Tasks.objects.all()}

	urlpatterns = patterns('tasks.views',
	    # =====TASKS======	    
	    (r'^$', view_list, dict( info_tasks ),'tasks_list'),
	    )

In my tasks models for class Tasks i'm returning with the method __field__ the many fields to built my list that i'm passing in the second parameter, that's working at all.

Now arrives the true question, for one of the filters (employees in this case) i create a forms.py that is placing a simple class with one field that make a query to retrieve all of the names of my employees:


    from django import forms
    from django.forms import ModelForm
    from django.utils.translation import ugettext_lazy as _
    from Tasks.models import Employees
    from django.utils.encoding import smart_unicode


    class Employee(ModelForm):
        name = forms.ModelChoiceField(queryset=Employees.objects.all(), empty_label="All")



But here comes the misunderstanding concept that i have now (or maybe not), for what i understand for now is that views are called by an url that match with the url that is making the request by the user, in this case, for any task/ follow for nothing (defined in the main urls.py of project) always call my generic view an pass this to tasks_list.html for rendering, well, what happens now if i want to pass my form with my filters? I can't simple make a call from any views, neither from the model (that's break the philosophy of Django - MVT) How can i simple call small pieces of 'querys' or 'views' for print in my template?

It's an absurde question after all yes, but my mind concept of Django is a little blocked, i'm read the many documentation but only talk about forms that are passing in a method view that finally renders the result page giving it to the template.

This further a general question for everything, not only forms.

Regards!
  