Which file is used to define URL patterns in Django?
Correct answer
A. urls.py
13 views
A. urls.py
13 views
urls.py defines URL patterns in Django. It contains a urlpatterns list that maps each URL, via path() or re_path(), to a view.
A project has a root urls.py, and each app usually has its own that is plugged in with include().
Want more practice? Try the full set of Computer Science MCQs on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.