Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/urls.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed "URLconf" spelling in code comments.Tim Graham2015-10-221-1/+1
|
* Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham2014-04-031-2/+1
| | | | Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
* Fixed #21774 -- Isolate all test urls from eachother.Marc Tamlyn2014-01-141-31/+6
| | | | | | | | | | | | | This (nearly) completes the work to isolate all the test modules from each other. This is now more important as importing models from another module will case PendingDeprecationWarnings if those modules are not in INSTALLED_APPS. The only remaining obvious dependencies are: - d.c.auth depends on d.c.admin (because of the is_admin flag to some views), but this is not so important and d.c.admin is in always_installed_apps - test_client_regress depends on test_client. Eventually these should become a single module, as the split serves no useful purpose.
* Renamed some tests and removed references to ↵Florian Apolloner2013-02-261-10/+10
| | | | modeltests/regressiontests.
* Made sure the new project template functionality works ↵Ramiro Morales2011-12-291-1/+1
| | | | | | | | | | | | when the template path specified has a trailing path separator. Thanks Alex for the report. Fixes #17475. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17042 -- Extended startproject and startapp ↵Jannis Leidel2011-12-221-0/+3
| | | | | | | | | | management commands to better handle custom app and project templates. Many thanks to Preston Holmes for his initial patch and Alex Gaynor, Carl Meyer, Donald Stufft, Jacob Kaplan-Moss and Julien Phalip for code reviewing. * Added ability to pass the project or app directory path as the second argument * Added ``--template`` option for specifying custom project and app templates * Cleaned up admin_scripts tests a little while I was there git-svn-id: http://code.djangoproject.com/svn/django/trunk@17246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Converted internal link generation in the admin and ↵Ramiro Morales2011-09-201-1/+3
| | | | | | | | | | | | | admin document generator to use named URLs. Thanks to Florian Apolloner for both the initial patch and his final push to get this fixed, to Dario Ocles for his great work on the admin templates and switching the admin_doc application to also use named URLs, to Mikko Hellsing for his comments and to Jannis and Julien for their review and design guidance. Fixes #15294. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Improved test isolation of the admin tests and assigned ↵Ramiro Morales2011-09-201-4/+0
| | | | | | | | | | | | | | | | | custom admin sites to prevent test order dependant failures. This involves introducing usage of `TestCase.urls` and implementing proper admin.py modules for some of the test apps. Thanks Florian Apolloner for finding the issue and contributing the patch. Refs #15294 (it solves these problems so the fix for that ticket we are going to commit doesn't introduce obscure and hard to reproduce test failures when running the Django test suite.) git-svn-id: http://code.djangoproject.com/svn/django/trunk@16856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14675 -- Completed removal of `from ↵Ramiro Morales2011-09-121-1/+1
| | | | | | | | | | | | | | django.conf.urls.default import *` usage. This applies to both our own [test] code and documentation examples. Also: * Moved the functions and handlers from `django.conf.urls.defaults` up to `django.conf.urls` deprecating the former module. * Added documentation for `handler403`. * Tweaked the URLs topic document a bit. Thanks to pupeno and cdestigter for their great work contributing patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Changed utils/decorators.py tests to use RequestFactoryLuke Plant2011-05-231-1/+0
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@16272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Modified some regression tests to make them independent ↵Russell Keith-Magee2011-04-021-15/+0
| | | | | | of the default root urlconf. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15999 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14774 -- the test client and assertNumQueries ↵Alex Gaynor2011-01-201-0/+4
| | | | | | didn't work well together. Thanks to Jonas Obrist for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14507 -- Corrected the logic of the URL helpers ↵Jannis Leidel2010-10-211-3/+0
| | | | | | and view of staticfiles to actual work like documented (only when settings.DEBUG is True). Thanks for the report and initial patch, mbi. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12323 and #11582 -- Extended the ability to ↵Jannis Leidel2010-10-201-0/+3
| | | | | | handle static files. Thanks to all for helping with the original app, the patch, documentation and general support. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6094 -- Middleware exceptions are now caught by ↵Adrian Holovaty2010-01-101-0/+3
| | | | | | the core handler. Thanks, isagalaev git-svn-id: http://code.djangoproject.com/svn/django/trunk@12165 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8049 -- Fixed inconsistency in admin site ↵Adrian Holovaty2010-01-101-0/+3
| | | | | | is_active checks. Thanks for patch and tests, isagalaev git-svn-id: http://code.djangoproject.com/svn/django/trunk@12159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5791 -- Added early-bailout support for views ↵Malcolm Tredinnick2009-03-221-2/+5
| | | | | | | | | | | | | | (ETags and Last-modified). This provides support for views that can have their ETag and/or Last-modified values computed much more quickly than the view itself. Supports all HTTP verbs (not just GET). Documentation and tests need a little more fleshing out (I'm not happy with the documentation at the moment, since it's a bit backwards), but the functionality is correct. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Cleaned up and refactored ↵Jacob Kaplan-Moss2009-01-161-0/+3
| | | | | | | | | | | | | | `ModelAdmin.formfield_for_dbfield`: * The new method uses an admin configuration option (`formfield_overrides`); this makes custom admin widgets especially easy. * Refactored what was left of `formfield_for_dbfield` into a handful of smaller methods so that it's easier to hook in and return custom fields where needed. * These `formfield_for_*` methods now pass around `request` so that you can easily modify fields based on request (as in #3987). Fixes #8306, #3987, #9148. Thanks to James Bennet for the original patch; Alex Gaynor and Brian Rosner also contributed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #9498 -- Handle a formset correctly when the ↵Brian Rosner2008-11-131-0/+1
| | | | | | | | | | | foreign key is not available (for now). This case pops up with generic foreign key inlines after [9297]. Added tests to handle future regressions with generic foreign key inlines in the admin. Thanks markus and danielr for patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Merged the newforms-admin branch into trunk.Brian Rosner2008-07-191-0/+3
| | | | | | | | This is a backward incompatible change. The admin contrib app has been refactored. The newforms module has several improvements including FormSets and Media definitions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2070: refactored Django's file upload capabilities.Jacob Kaplan-Moss2008-07-011-0/+3
| | | | | | | | | A description of the new features can be found in the new [http://www.djangoproject.com/documentation/upload_handing/ upload handling documentation]; the executive summary is that Django will now happily handle uploads of large files without issues. This changes the representation of uploaded files from dictionaries to bona fide objects; see BackwardsIncompatibleChanges for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7814 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7521 -- Reverted [7716]. Fixed URLs in test case ↵Russell Keith-Magee2008-06-231-3/+0
| | | | | | broke any application that deployed contrib.auth. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7726 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added basic tests for auth.views.password_resetLuke Plant2008-06-201-0/+3
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@7716 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Merged the tests and documentation from #4720 to support ↵Malcolm Tredinnick2008-03-201-0/+3
| | | | | | | | | the changes in [7295]. Thanks, Andy Gayton. Fixed #4720. Refs #5855. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6679 -- In `decorator_from_middleware`, don't ↵Gary Wilson Jr2008-03-171-1/+3
| | | | | | | | | unpack arguments when calling a middleware's `process_view` method, thanks Gulopine. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7269 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #3228 -- Added new APPEND_SLASH handling behaviour ↵Malcolm Tredinnick2007-12-031-0/+3
| | | | | | in the common middleware. Makes customisation a bit easier. Thanks, Mihai Preda and Andy Gayton. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5496 -- Added test cases for some of the built-in ↵Russell Keith-Magee2007-09-171-0/+3
| | | | | | Django views. Thanks to Manuel Saelices <msaelices@yaco.es> for the original patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6370 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Improved error reporting for assertions where there are ↵Russell Keith-Magee2007-05-101-0/+1
| | | | | | no form errors, or a non-existent field has been provided. Also created a test client regression test, to hold the tests validating the failure cases of the TestCase assertions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixes #2333 -- Added test fixtures framework.Russell Keith-Magee2007-03-011-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@4659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2606 -- Added tag for working out the URL of a ↵Malcolm Tredinnick2007-02-131-0/+3
| | | | | | | | | particular view function. All work done by Ivan Sagalaev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Refs #2333 - Added model test for the test Client. Russell Keith-Magee2006-09-021-0/+10
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3708 bcc190cf-cafb-0310-a4f2-bffc1f526a37