есть такая вьюшка:
from django import forms
from django.utils.translation import gettext as _
class SetLoginForm(forms.Form):
login = forms.CharField(label=_('Your Login'), max_length=30)
f = SetLoginForm()
r = render_to_response('set_login.html', {'f':f,'request':req,'user':req.user})
return r
forms.py
from django import forms
from django.utils.translation import gettext as _
class SetLoginForm(forms.Form):
login = forms.CharField(label=_('Your Login'), max_length=30)
from forms import SetLoginForm
f = SetLoginForm()
r = render_to_response('set_login.html', {'f':f,'request':req,'user':req.user})
return r