Question: Which function in the django.urls package can help you avoid hardcoding URLS by generating a URL given the name of a view?

  1. get_script_prefix()
  2. redirect()
  3. reverse()
  4. resolve()

Answer: The correct answer of the above question is Option C:reverse()