ok so I have the following problem i`ve looked around but I cant find a solution ...
lets say I have the following forms.py
from django import forms
class LoginForm(forms.Form):
    _username = forms.CharField()
    _password = forms.CharField()
and in views.py I have
def index(request):
    if request.method == 'POST':
        form = LoginForm(request.POST)
    else:
        form = LoginForm()
    if form.is_valid:
        username = form.cleaned_data['_username']
        password = form.cleaned_data['_password']
        if check_credential(username, password):
            request.session['_username'] = username
            request.session['_password'] = password
I`m using void@void:~$ django-admin --version 1.1.1
I`m using djangobook to learn django they used an old ver of django that had clean_data ...ive tryed using
from django import newforms as forms 
but the result was the same ...
'LoginForm' object has no attribute 'cleaned_data'