From 2a2b841cc066208b381eb1994106444442b9bcf8 Mon Sep 17 00:00:00 2001 From: Gesche Gierse Date: Sun, 10 Feb 2019 14:17:36 +0100 Subject: [PATCH] allow hosting anywhere --- tibia_website/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tibia_website/settings.py b/tibia_website/settings.py index 645be71..40e2ae9 100644 --- a/tibia_website/settings.py +++ b/tibia_website/settings.py @@ -25,7 +25,7 @@ SECRET_KEY = '0bup5^j9qen7!g8i5ngkc0_n+0wh@8n8j@_j+$vj06l3v2)esl' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['*'] # Application definition @@ -123,6 +123,7 @@ USE_TZ = True # https://docs.djangoproject.com/en/2.1/howto/static-files/ STATIC_URL = '/static/' +STATIC_ROOT = os.path.join(BASE_DIR, "static/") # Redirect to home URL after login (Default redirects to /accounts/profile/) LOGIN_REDIRECT_URL = '/accounts/'