Skip to content

Commit

Permalink
Add allowed hosts setting
Browse files Browse the repository at this point in the history
Django 1.5 required ALLOWED_HOSTS to be set in production environment.
See: https://docs.djangoproject.com/en/4.2/releases/1.5/#allowed-hosts-required-in-production
  • Loading branch information
ilesoft committed Nov 26, 2023
1 parent 975e947 commit 147153e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

hakemisto=os.path.normpath(os.path.dirname(__file__)) + '/..'

ALLOWED_HOSTS = ['localhost', '127.0.0.1']

DEBUG = False
TEMPLATE_DEBUG = DEBUG
RECORDING = False
Expand Down

0 comments on commit 147153e

Please sign in to comment.