Просмотр исходного кода

Double definition of SECRET_KEY removed

Ralfp 12 лет назад
Родитель
Сommit
a5bf9e7693
1 измененных файлов с 3 добавлено и 5 удалено
  1. 3 5
      deployment/settings.py

+ 3 - 5
deployment/settings.py

@@ -20,9 +20,10 @@ ADMINS = ()
 
 # Secret key is used by Django and Misago in hashes generation
 # YOU MUST REPLACE IT with random combination of characters
+# NEVER EVER SHARE THIS KEY WITH ANYBODY!
 # Make it messed up and long, this is example of good secret key:
-# JA*^Sd09as809!^*(DSA!K1m12o7ds8a791k1#@!829758!@@ii_*091)
-SECRET_KEY = 'CHANGE-ME!'
+# yaobeifl1a6hf&3)^uc#^vlu1ud7xp^+*c5zoq*tf)fvs#*o$#
+SECRET_KEY = 'CHANGE-ME'
 
 # Database connection
 DATABASES = {
@@ -140,8 +141,5 @@ INSTALLED_THEMES = (
     'admin', # Admin theme always last
 )
 
-# Make this unique, and don't share it with anybody.
-SECRET_KEY = ''
-
 # Python dotted path to the WSGI application used by Django's runserver.
 WSGI_APPLICATION = 'deployment.wsgi.application'