setup.py: hide DJANGO_SETTINGS_MODULE value when calling compilemessages

This commit is contained in:
Benjamin Dauvergne 2015-12-17 11:06:42 +01:00
parent dc1e4e56ea
commit 9b7da116ea
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class compile_translations(Command):
def run(self):
import os
from django.core.management import call_command
os.environ.pop('DJANGO_SETTINGS_MODULE', None)
for path in ['mellon/']:
if path.endswith('.py'):
continue