Commit a0aef73c authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add FQDN to ALLOWED_HOSTS for development server

parent 06341f3b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@
# dev.conf) to override settings for the development server.
#

from socket import getfqdn

from ..util.network import Network

# Fixed project settings (all environments)
@@ -20,6 +22,7 @@ SECRET_KEY = 'hjo$s%#k4(lf&-!tad0qeov51%k$@0n**1m9w*o91=v4k3ss$v'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
INTERNAL_IPS = Network('127.0.0.1')
ALLOWED_HOSTS = [getfqdn()]

CACHE_MIDDLEWARE_SECONDS = 0