Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed SECRET_KEY to actually be secret.

Yipes.
  • Loading branch information...
commit fe375d6a5f79662166e66a27425cd8b430b170b9 1 parent 07ee7c1
@jacobian jacobian authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 django_website/settings/www.py
View
4 django_website/settings/www.py
@@ -1,6 +1,7 @@
# Settings for www.djangoproject.com
import os
+import json
import platform
from unipath import FSPath as Path
@@ -10,6 +11,9 @@
# Far too clever trick to know if we're running on the deployment server.
PRODUCTION = ('DJANGOPROJECT_DEBUG' not in os.environ) and ("djangoproject" in platform.node())
+# It's a secret to everybody
+SECRET_KEY = json.load(open(BASE.child('secrets.json')))['secret_key']
+
ADMINS = (('Adrian Holovaty','holovaty@gmail.com'),('Jacob Kaplan-Moss', 'jacob@jacobian.org'))
MANAGERS = (('Jacob Kaplan-Moss','jacob@jacobian.org'),)
TIME_ZONE = 'America/Chicago'
Please sign in to comment.
Something went wrong with that request. Please try again.