diff --git a/ansible/roles/horizon/templates/local_settings.j2 b/ansible/roles/horizon/templates/local_settings.j2
index eab5185234e70c2452d3b4d172988101901fd041..5fa97b960037855d7bb4faa08669b5cb897c3c72 100644
--- a/ansible/roles/horizon/templates/local_settings.j2
+++ b/ansible/roles/horizon/templates/local_settings.j2
@@ -843,4 +843,4 @@ KEY_MANAGER = {
 {% endif %}
 
 # Allow operators to overwrite variables (LP: #1769970).
-from custom_local_settings import *
+from .custom_local_settings import *