diff options
| author | Tim Graham <timograham@gmail.com> | 2015-08-17 11:07:03 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-23 19:31:09 -0400 |
| commit | d79122f40ba2016b1a943e2e1ba46984b2ef99ad (patch) | |
| tree | d41d0dff61486d0b033fce110823da569cc5c1fc /docs/ref | |
| parent | a25d3ce007b90a0516aed54fc1c5a16510a290e4 (diff) | |
Refs #23276 -- Removed passing views as strings to url() per deprecation timeline.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/urls.txt | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/docs/ref/urls.txt b/docs/ref/urls.txt index 2b40c9eaf6..b1053c6f71 100644 --- a/docs/ref/urls.txt +++ b/docs/ref/urls.txt @@ -26,7 +26,7 @@ Helper function to return a URL pattern for serving files in debug mode:: url() ----- -.. function:: url(regex, view, kwargs=None, name=None, prefix='') +.. function:: url(regex, view, kwargs=None, name=None) ``urlpatterns`` should be a list of ``url()`` instances. For example:: @@ -35,25 +35,12 @@ url() ... ] -This function takes five arguments, most of which are optional:: - - url(regex, view, kwargs=None, name=None, prefix='') - The ``kwargs`` parameter allows you to pass additional arguments to the view function or method. See :ref:`views-extra-options` for an example. See :ref:`Naming URL patterns <naming-url-patterns>` for why the ``name`` parameter is useful. -.. deprecated:: 1.8 - - Support for string ``view`` arguments is deprecated and will be removed in - Django 1.10. Pass the callable instead. - - The ``prefix`` parameter has the same meaning as the first argument to - ``patterns()`` and is only relevant when you're passing a string as the - ``view`` parameter. - include() --------- |
