Browse Source

settings pour la prod

master
Klafyvel 8 years ago
parent
commit
e884236cc3
  1. 4
      site_tps/settings.py

4
site_tps/settings.py

@ -27,7 +27,7 @@ AES_KEY = "0123456789ABCDEF"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition
@ -124,7 +124,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/2.0/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'static', 'media')

Loading…
Cancel
Save