Code cleanups.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-08-30 01:12:04 -04:00
parent 6a8236b5b3
commit 5f1544154c
2 changed files with 2 additions and 14 deletions

View File

@@ -16,10 +16,6 @@ else:
dictionary_type = types.DictionaryType
try:
from email.Utils import collapse_rfc2231_value
from email.Utils import collapse_rfc2231_value # NOQA
except ImportError:
from email.utils import collapse_rfc2231_value
from email.utils import collapse_rfc2231_value # NOQA

View File

@@ -25,14 +25,6 @@ class Command(management.BaseCommand):
self.stdout.write(self.style.NOTICE('Existing settings file at: {0}. Backup, remove this file, and try again.'.format(path)))
else:
with open(path, 'w+') as file_object:
#file_object.write('\n'.join([
# 'from __future__ import absolute_import',
# '',
# 'from .base import *',
# '',
# "SECRET_KEY = '{0}'".format(Command._generate_secret_key()),
# '',
#]))
file_object.write(
SETTING_FILE_TEMPLATE.format(Command._generate_secret_key())
)