diff --git a/roles/moinmoin/templates/moin/mywiki.py.j2 b/roles/moinmoin/templates/moin/mywiki.py.j2
index d4c03338e5239b91c2b23a52db75d592b248038d..397430b98779534223af3584a75ca792053d8a42 100644
--- a/roles/moinmoin/templates/moin/mywiki.py.j2
+++ b/roles/moinmoin/templates/moin/mywiki.py.j2
@@ -15,6 +15,10 @@ the farm's common settings.
 
 # we import the FarmConfig class for common defaults of our wikis:
 from farmconfig import FarmConfig
+{% if not moinmoin.main -%}
+# we import config to disable the account creation at the bottom of this file
+from Moinmoin import config
+{% endif -%}
 
 # now we subclass that config (inherit from it) and change what's different:
 class Config(FarmConfig):