BO 1.28+14 production settings static files
This commit is contained in:
parent
b9e7dfeb51
commit
34ca3e381a
@ -121,14 +121,14 @@ USE_TZ = True
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/3.0/howto/static-files/
|
||||
|
||||
STATIC_URL = '/aitrainer_backoffice/static/'
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, "static")
|
||||
STATIC_URL = '/static/'
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, STATIC_URL)
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, "static"),
|
||||
os.path.join(BASE_DIR, STATIC_URL),
|
||||
]
|
||||
|
||||
MEDIA_URL = '/media/'
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, MEDIA_URL)
|
||||
CKEDITOR_UPLOAD_PATH = MEDIA_URL
|
||||
|
||||
LOGGING = {
|
||||
|
@ -10,6 +10,6 @@ https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
|
||||
import os
|
||||
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'aitrainer_backoffice.aitrainer_backoffice.settings.prod')
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'aitrainer_backoffice.settings.prod')
|
||||
application = get_wsgi_application()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user