feature/implementacion de gestor de informacion y archivos minIO
This commit is contained in:
@@ -27,6 +27,7 @@ import re
|
||||
|
||||
# Celery Beat Schedule
|
||||
from celery.schedules import crontab
|
||||
from config.stg.storage import *
|
||||
|
||||
CELERY_BEAT_SCHEDULE = {
|
||||
|
||||
@@ -85,6 +86,7 @@ THIRD_APPS = [
|
||||
]
|
||||
|
||||
OWN_APPS = [
|
||||
'api',
|
||||
'api.customs',
|
||||
'api.record',
|
||||
'api.organization',
|
||||
@@ -280,6 +282,9 @@ else:
|
||||
STATICFILES_DIRS = []
|
||||
STATIC_ROOT = BASE_DIR / 'static'
|
||||
|
||||
if STORAGE_BACKEND == 'minio':
|
||||
MEDIA_URL = f"http://{os.getenv('MINIO_ENDPOINT')}/{AWS_STORAGE_BUCKET_NAME}/"
|
||||
|
||||
MEDIA_URL = '/media/'
|
||||
MEDIA_ROOT = BASE_DIR / 'media'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user