urls.ResolverMatch.app_names
  • References/Python/Django/API/django.urls utility functions

app_names New in Django 1.9. The list

2025-01-10 15:47:30
urls.get_script_prefix()
  • References/Python/Django/API/django.urls utility functions

get_script_prefix() [source] Normally, you should always use reverse() to define

2025-01-10 15:47:30
urls.ResolverMatch.func
  • References/Python/Django/API/django.urls utility functions

func The view function that would be used to serve the URL

2025-01-10 15:47:30
urls.ResolverMatch
  • References/Python/Django/API/django.urls utility functions

class ResolverMatch [source] func The

2025-01-10 15:47:30
urls.ResolverMatch.args
  • References/Python/Django/API/django.urls utility functions

args The arguments that would be passed to the view function, as parsed from the URL.

2025-01-10 15:47:30
urls.resolve()
  • References/Python/Django/API/django.urls utility functions

resolve(path, urlconf=None) [source] path is the URL path you want to resolve

2025-01-10 15:47:30
urls.reverse()
  • References/Python/Django/API/django.urls utility functions

reverse(viewname, urlconf=None, args=None, kwargs=None, current_app=None) [source] viewname

2025-01-10 15:47:30
urls.ResolverMatch.url_name
  • References/Python/Django/API/django.urls utility functions

url_name The name of the URL pattern that matches the URL.

2025-01-10 15:47:30
urls.ResolverMatch.kwargs
  • References/Python/Django/API/django.urls utility functions

kwargs The keyword arguments that would be passed to the view function, as parsed from the URL.

2025-01-10 15:47:30
urls.ResolverMatch.app_name
  • References/Python/Django/API/django.urls utility functions

app_name The application namespace for the URL pattern that matches the URL.

2025-01-10 15:47:30