diff --git a/modules/lodgeit/templates/layout.html.erb b/modules/lodgeit/templates/layout.html.erb
index 5fef1c8941..14a32a565b 100644
--- a/modules/lodgeit/templates/layout.html.erb
+++ b/modules/lodgeit/templates/layout.html.erb
@@ -20,9 +20,9 @@
diff --git a/modules/lodgeit/templates/manage.py.erb b/modules/lodgeit/templates/manage.py.erb
index 6f1a614a01..f6af18bd1d 100644
--- a/modules/lodgeit/templates/manage.py.erb
+++ b/modules/lodgeit/templates/manage.py.erb
@@ -7,7 +7,7 @@ from lodgeit import local
from lodgeit.application import make_app
from lodgeit.database import session
-dburi = 'drizzle://127.0.0.1:4427/<%= name %>'
+dburi = 'drizzle://127.0.0.1:4427/<%= @name %>'
SECRET_KEY = 'no secret key'