diff --git a/bin/compile b/bin/compile index fac6d0f90152a510a5a6413f8cab0ea33ebbc1ce..27c43d59655756cf7539d1c73e395e03b37d0b5c 100755 --- a/bin/compile +++ b/bin/compile @@ -94,7 +94,7 @@ import os, sys, urlparse urlparse.uses_netloc.append('postgres') urlparse.uses_netloc.append('mysql') try: - if os.environ.has_key('DATABASE_URL') and DATABASE != None: + if os.environ.has_key('DATABASE_URL') and DATABASES != None: url = urlparse.urlparse(os.environ['DATABASE_URL']) DATABASES['default'] = { 'NAME': url.path[1:],