statics file in django code example
Example 1: add static file in django
STATICFILES_DIRS = [
BASE_DIR / "static",
'/var/www/static/',
]
Example 2: static file link in django
STATIC_URL = '/static/'
STATICFILES_DIRS = [
BASE_DIR / "static",
'/var/www/static/',
]
STATIC_URL = '/static/'