If you want two different URLs to be static, in my case the development and output directory for my angular2 application, this was my solution inside your url.py:
from django.conf import settings from django.conf.urls import patterns, include, url from django.conf.urls.static import static
I have several settings.py files, and then I am symbolically attached to the one I am using, based on the deployment. Inside my code.settings.py, which references settings.py for writing code, I added:
STATIC_DEBUG_URL = '/app/' STATIC_DEBUG_ROOT = 'xxx/website/app/'
source share