init commit
This commit is contained in:
9
lottery/bot/storage.py
Normal file
9
lottery/bot/storage.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import os
|
||||
from django.conf import settings
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
|
||||
# Кастомное хранилище для загрузки изображений в /static/upload_image
|
||||
static_storage = FileSystemStorage(
|
||||
location=os.path.join(settings.BASE_DIR, 'static', 'upload_image'),
|
||||
base_url='/static/upload_image/'
|
||||
)
|
||||
Reference in New Issue
Block a user