How can you serve static files in Django during development?

How can you serve static files in Django during development?

a) Using the Django admin panel
b) Using the settings STATIC_URL and STATICFILES_DIRS
c) By placing static files in the root directory
d) By modifying the database schema

Answer:

b) Using the settings STATIC_URL and STATICFILES_DIRS

Explanation:

During development, static files in Django can be served by configuring the STATIC_URL and STATICFILES_DIRS settings in settings.py.

Reference:

Django Quiz – MCQ Questions and Answers

Scroll to Top