I have a django south created table "tablename", I want to acess it from django views, like this.
from myapp.models import*
def function(request):
a=Tablename.objects.all()
return
but this shaows an error "global name 'Tablename' is not defined" can anyone help me to access south created table from django views. thanks