Fix maps command.

see #867
This commit is contained in:
Antoine Nguyen
2016-04-29 14:53:58 +02:00
parent 489327dda6
commit 05b38212fb
+2
View File
@@ -7,6 +7,7 @@ import getpass
import os
import sys
import django
from django.template import Context, Template
import dj_database_url
@@ -167,6 +168,7 @@ class PostfixMapsCommand(Command):
def handle(self, parsed_args):
"""Command entry point."""
django.setup()
dbinfo = None
if parsed_args.dburl:
dbinfo = dj_database_url.config(default=parsed_args.dburl[0])