Q. What is the correct way to define a URL namespace in Django?

  • (A) app_url
  • (B) namespace()
  • (C) path(namespace=...)
  • (D) app_name = 'your_app'
πŸ’¬ Discuss
βœ… Correct Answer: (D) app_name = 'your_app'
Explanation: `app_name` is used to set the namespace for URL patterns.
Explanation by: Mr. Dubey
`app_name` is used to set the namespace for URL patterns.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
104
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate