def schema_version(request):
 cursor = connection.cursor()
 cursor.execute('SELECT version FROM schema_version')
 version = [x for x in cursor][0][0]
 return render_to_response('kadmin/schema.html', {'schema_version': version, 'title': 'Schema Version'}, RequestContext(request, {}))

def schema_version ( request ) : cursor = connection . cursor ( ) cursor . execute ( 'SELECT version FROM schema_version' ) version = [ x for x in cursor ] [ 0 ] [ 0 ] return render_to_response ( 'kadmin/schema.html' , { 'schema_version' : version , 'title' : 'Schema Version' } , RequestContext ( request , { } ) )
admin view that displays the current schema_version .