why are static files searched in templates in django code example
Example 1: staticfiles
STATICFILES_DIRS = [BASE_DIR / 'static']
Example 2: static file link in django
STATIC_URL = '/static/'
STATICFILES_DIRS = [BASE_DIR / 'static']
STATIC_URL = '/static/'