Django STATIC_ROOT не загружает файлы при полной конфигурации
ingestion-dashboard/
├── apps
│ ├── adapter
│ ├── authentication
| |__init__.py
│ ├── static
│ │ ├── assets
│ │ │-- css
│ │ │── img
│ │ │── scss
│ │ │── vendor
│ └── templates
│ ├── accounts
│ ├── home
│
├── dashboard
│ ├── asgi.py
│ ├── __init__.py
│ ├── settings.py
│ ├── staticfiles
│ ├── urls.py
│ └── wsgi.py
├── manage.py
├── requirements.txt
└───staticfiles
├── assets
│── css
│── img
│── scss
│── vendor
settings.py
CORE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # ingestion-dashboard
STATIC_ROOT = os.path.join(CORE_DIR, 'staticfiles')
STATIC_URL = '/static/'
STATICFILES_DIRS = (
os.path.join(CORE_DIR, 'apps/static'),
)
Файлы из apps/static
успешно копируются в STATIC_ROOT
, но файлы оттуда не отображаются.
В браузере, в url я все еще вижу ***/static/***
, который был в режиме отладки, пока я установил DEBUG=FALSE