summaryrefslogtreecommitdiff
path: root/tests/regressiontests/urlpatterns_reverse
AgeCommit message (Collapse)Author
2010-03-26Fixed #12594 -- Ensured that a meaningful exception is raised when the ↵Russell Keith-Magee
urlconf_module is None. Thanks to buriy for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-10Fixed #11960 -- Improved error message for redirects. Thanks, mattmccAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-13Fixed #10326: handler500 and handler404 may now be callables. Thanks, ↵Jacob Kaplan-Moss
dcwatson, adurdin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-16Fixed #5034 -- honor request.urlconf in reverse and resolve.Brian Rosner
This enables {% url %} to honor request.urlconf set from process_request middleware methods. Thanks SmileyChris for the initial patch work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11740 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-16Fixed #10061 -- Added namespacing for named URLs - most importantly, for the ↵Russell Keith-Magee
admin site, where the absence of this facility was causing problems. Thanks to the many people who contributed to and helped review this patch. This change is backwards incompatible for anyone that is using the named URLs introduced in [9739]. Any usage of the old admin_XXX names need to be modified to use the new namespaced format; in many cases this will be as simple as a search & replace for "admin_" -> "admin:". See the docs for more details on the new URL names, and the namespace resolution strategy. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-29Fixed #10834 -- Added bucket condition to ensure that URL resolvers won't ↵Russell Keith-Magee
ever return None. Thanks to Chris Cahoon for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11120 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-04Fixed #10065 -- Corrected an error message when an empty urlpattern object ↵Russell Keith-Magee
is provided. Thanks to Matthew Flanagan for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-21Fixed #10194: added `django.shortcuts.redirect`, a do-what-I-mean redirect ↵Jacob Kaplan-Moss
shortcut. See the docs at topics/http/shortcuts for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-01-10In urlconfs, include() may now be used on an iterable of patterns instead of ↵Jacob Kaplan-Moss
just a module string. Refs #6470 -- making the admin use a urlconf is much easier with this work done. Thanks, Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-30Fixed another case of reverse URL resolving that wasn't working.Malcolm Tredinnick
This is a similar situation to that fixed in r9087. We weren't merging multiple levels of include() calls together correctly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-27Fixed #9038 -- Correctly handle URL patterns with the same name (or view name),Malcolm Tredinnick
declared independently and that differ only by argument signatures. Patch from Russell Keith-Magee. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9087 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01Fixed a case of incorrect parsing of quanitifers in reg-exp patterns.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8825 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31Fixed #8725 -- Handle empty URL patterns in reverse().Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31A rewrite of the reverse URL parsing: the reverse() call and the "url" ↵Malcolm Tredinnick
template tag. This is fully backwards compatible, but it fixes a bunch of little bugs. Thanks to SmileyChris and Ilya Semenov for some early patches in this area that were incorporated into this change. Fixed #2977, #4915, #6934, #7206. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06Revert [7849] and [7850]. Brain failure on my part.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7851 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06Some tests for the new features. These pretty much fail at the moment. Based onMalcolm Tredinnick
SmileyChris's original work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7849 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16Fixed #6831 -- Reverse URL resolver now replaces backslashes correctly. ↵Adrian Holovaty
Thanks, Bastian Kleineidam git-svn-id: http://code.djangoproject.com/svn/django/trunk@7660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-27Refs #2333 - Modified runtests script to use new testing framework. Migrated ↵Russell Keith-Magee
existing tests to use Django testing framework. All the 'othertests' have been migrated into 'regressiontests', and converted into doctests/unittests, as appropriate. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3661 bcc190cf-cafb-0310-a4f2-bffc1f526a37