Fix django settings bug
Added ability to specify lock_key inside the script with get_lock_key function