Vetsi bezpecnost tajneho session key
This commit is contained in:
parent
b14b92c5eb
commit
14b678f111
2 changed files with 3 additions and 3 deletions
|
@ -155,7 +155,7 @@ try:
|
||||||
with open(os.path.join(os.path.dirname(__file__), '..', 'django.secret')) as f:
|
with open(os.path.join(os.path.dirname(__file__), '..', 'django.secret')) as f:
|
||||||
SECRET_KEY = f.readline().strip()
|
SECRET_KEY = f.readline().strip()
|
||||||
except:
|
except:
|
||||||
SECRET_KEY = ')^u=i65*zmr_k53a*@f4q_+ji^o@!pgpef*5&8c7zzdqwkdlkj'
|
SECRET_KEY = '12345zmr_k53a*@f4q_+ji^o@!pgpef*5&8c7zzdqwkdlkj'
|
||||||
|
|
||||||
# MaM specific
|
# MaM specific
|
||||||
|
|
||||||
|
|
|
@ -8,14 +8,14 @@ INSTALLED_APPS += (
|
||||||
)
|
)
|
||||||
|
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
#SECRET_KEY = TODO
|
assert not SECRET_KEY.startswith('12345')
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
||||||
TEMPLATE_DEBUG = False
|
TEMPLATE_DEBUG = False
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['mam.mff.cuni.cz']
|
ALLOWED_HOSTS = ['mam.mff.cuni.cz', 'www.mam.mff.cuni.cz', 'atrey.karlin.mff.cuni.cz']
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
||||||
|
|
Loading…
Reference in a new issue