Improve the settings method, allow for execution of mayan-edms.py without an existing local.py file

This commit is contained in:
Roberto Rosario
2014-10-09 19:34:51 -04:00
parent 0222474afa
commit 9bf1b3b95a
8 changed files with 23 additions and 12 deletions
@@ -16,6 +16,7 @@ class Command(management.BaseCommand):
with open(os.path.join(settings.BASE_DIR, 'mayan', 'settings', 'local.py'), 'w+') as file_object:
file_object.write('\n'.join([
'from __future__ import absolute_import',
'',
'from .base import *',
'',
"SECRET_KEY = '{0}'".format(self._generate_secret_key()),