In my project, 3 different sites are working in a virtual environment. I have a 4th dashboard design to organize these sites.
site1_settings.py
STATIC_URL = 'static/site1/'
STATIC_ROOT = BASE_DIR / 'static/site1/'
STATICFILES_DIRS = [
"C:/projs/ddd/static/site1/",
]
MEDIA_ROOT = 'C:/projs/ddd/media/site1/'
MEDIA_URL = '/media/site1/'
For 3 sites Static/site[1-2-3]/ and Media/site[1-2-3]/ works fine. But Dashboard doesn't work because it looks in their directory. Copying the Dashboard's files into each solves the problem, but DRY does not. How can I point Dashboard's Static and Media to a single Static/Dashboard and Media/Dashboard from Settings.py. Thanks in advance.