From 05b38212fb18547736504f5726bb35b45caac92f Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Fri, 29 Apr 2016 14:53:58 +0200 Subject: [PATCH] Fix maps command. see #867 --- modoboa/core/commands/postfix_maps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modoboa/core/commands/postfix_maps.py b/modoboa/core/commands/postfix_maps.py index 8a500b816..2fbfab935 100644 --- a/modoboa/core/commands/postfix_maps.py +++ b/modoboa/core/commands/postfix_maps.py @@ -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])