About Silently Failing URLs

The {% url 'path_name' %} template tag raises an error if the url-name is missing.

Whereas {% url 'path_name' as the_url %} doesn't raise the error and fails silently.

That's useful when using Django CMS and attachable CMS apps, where the pages with attached apps can be detached or unpublished.

Tips and Tricks Development Django 4.2 Django 3.2 Django 2.2