Complete the code to set the URL prefix for static files in Django settings.
STATIC_URL = '[1]'
The STATIC_URL setting defines the URL prefix where static files are served. The common default is /static/.
Complete the code to add a directory named 'assets' inside the project root to the static files directories.
STATICFILES_DIRS = [BASE_DIR / '[1]']
The STATICFILES_DIRS setting is a list of folders where Django will look for additional static files. Here, we add the 'assets' folder.
Fix the error in the STATICFILES_DIRS setting to correctly include the 'static' folder inside the project root.
STATICFILES_DIRS = [BASE_DIR [1] 'static']
To join paths in Django settings using pathlib, use the division operator / to combine BASE_DIR with folder names.
Fill both blanks to create a STATICFILES_DIRS list with two folders: 'assets' and 'extra_static' inside the project root.
STATICFILES_DIRS = [BASE_DIR / '[1]', BASE_DIR / '[2]']
This setting tells Django to look for static files in both 'assets' and 'extra_static' folders inside the project root.
Fill all three blanks to set STATIC_URL to '/static/', and include 'static' and 'assets' folders in STATICFILES_DIRS inside the project root.
STATIC_URL = '[1]' STATICFILES_DIRS = [BASE_DIR / '[2]', BASE_DIR / '[3]']
The STATIC_URL is set to /static/ which is the URL prefix for static files. The STATICFILES_DIRS includes the 'static' and 'assets' folders inside the project root.