I was following a tutorial on setting STATIC_ROOT using a CDN for my satic files but I've decide I'd like to serve my static files on the same server where my django app is served. I tried changing to the new settings below and I ran manage.py collectstatic and now the static files aren't loading. What am I doing wrong? This is w/ django 1.9
new settings not working:
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
old settings working:
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), "static_cdn")
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), "media_cdn")