django urls views path code example Example: Django how to get url path for a view from django.urls import reverse reverse('app1.view.view1')