Generate a new secret key and save it to local.py settings after installation, use this local.py file by default
This commit is contained in:
@@ -3,7 +3,7 @@ import os
|
||||
import sys
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mayan.settings")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mayan.settings.local")
|
||||
|
||||
from django.core.management import execute_from_command_line
|
||||
|
||||
|
||||
3
mayan/settings/local.py
Normal file
3
mayan/settings/local.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from .base import *
|
||||
Reference in New Issue
Block a user