summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PythonTBC/settings.py4
-rw-r--r--tbc/views.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/PythonTBC/settings.py b/PythonTBC/settings.py
index c6fb730..033882e 100644
--- a/PythonTBC/settings.py
+++ b/PythonTBC/settings.py
@@ -3,7 +3,7 @@
from os.path import *
from .local import *
-DEBUG = True
+DEBUG = False
TEMPLATE_DEBUG = DEBUG
@@ -29,7 +29,7 @@ DATABASES = {
# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
-ALLOWED_HOSTS = []
+ALLOWED_HOSTS = ["localhost"]
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
diff --git a/tbc/views.py b/tbc/views.py
index 3e9f0f5..52a9478 100644
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -21,7 +21,7 @@ import random
import json
import subprocess
from email.mime.text import MIMEText
-
+import StringIO
def add_log(user, object, flag, message, proposal_id=None, chat='No message'):
'''Creates log entry of the user activities.'''