Browse Source

allow hosting anywhere

Gesche 2 years ago
parent
commit
2a2b841cc0
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      tibia_website/settings.py

+ 2
- 1
tibia_website/settings.py View File

@@ -25,7 +25,7 @@ SECRET_KEY = '0bup5^j9qen7!g8i5ngkc0_n+0wh@8n8j@_j+$vj06l3v2)esl'
25 25
 # SECURITY WARNING: don't run with debug turned on in production!
26 26
 DEBUG = True
27 27
 
28
-ALLOWED_HOSTS = []
28
+ALLOWED_HOSTS = ['*']
29 29
 
30 30
 
31 31
 # Application definition
@@ -123,6 +123,7 @@ USE_TZ = True
123 123
 # https://docs.djangoproject.com/en/2.1/howto/static-files/
124 124
 
125 125
 STATIC_URL = '/static/'
126
+STATIC_ROOT = os.path.join(BASE_DIR, "static/")
126 127
 
127 128
 # Redirect to home URL after login (Default redirects to /accounts/profile/)
128 129
 LOGIN_REDIRECT_URL = '/accounts/'

Loading…
Cancel
Save