Browse Source

Don't be picky about allowed host unless forum owner wants to

Ralfp 12 years ago
parent
commit
700c3584ba
2 changed files with 5 additions and 2 deletions
  1. 1 1
      deployment/settings.py
  2. 4 1
      misago/settings_base.py

+ 1 - 1
deployment/settings.py

@@ -128,4 +128,4 @@ INSTALLED_THEMES = (
 SECRET_KEY = ''
 SECRET_KEY = ''
 
 
 # Python dotted path to the WSGI application used by Django's runserver.
 # Python dotted path to the WSGI application used by Django's runserver.
-WSGI_APPLICATION = 'deployment.wsgi.application'
+WSGI_APPLICATION = 'deployment.wsgi.application'

+ 4 - 1
misago/settings_base.py

@@ -3,6 +3,9 @@ import os
 # Board address
 # Board address
 BOARD_ADDRESS = 'http://127.0.0.1:8000/'
 BOARD_ADDRESS = 'http://127.0.0.1:8000/'
 
 
+# Allowed hosts
+ALLOWED_HOSTS = ['*']
+
 # Admin control panel path
 # Admin control panel path
 # Leave this setting empty
 # Leave this setting empty
 ADMIN_PATH = ''
 ADMIN_PATH = ''
@@ -261,4 +264,4 @@ LOGGING = {
 # Misago's loaddata command requires complete list of
 # Misago's loaddata command requires complete list of
 # installed apps in order to work correctly
 # installed apps in order to work correctly
 import copy
 import copy
-INSTALLED_APPS_COMPLETE = copy.copy(INSTALLED_APPS)
+INSTALLED_APPS_COMPLETE = copy.copy(INSTALLED_APPS)