Commit Graph

898 Commits

Author SHA1 Message Date
Adrian Holovaty c5073320a7 Refactored cache from django/core/cache.py into django/core/cache package, with each backend getting a separate module. This keeps things cleaner and uses less memory, because the backend module is only loaded if it's needed.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-24 06:07:01 +00:00
Adrian Holovaty 9a74e89ef0 Fixed #1385 -- Allowed timesince filter to accept datetime.date objects. Thanks, Matt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2375 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-23 20:27:03 +00:00
Adrian Holovaty a5fad0eb37 Fixed #1387 -- Fixed some XHTML errors in admin templates. Thanks, vineet
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-23 19:05:40 +00:00
Adrian Holovaty 0bf0b6d896 Fixed #1275 and #1288 -- Change e-mail address validator regular expression to be faster, simpler and accept subdomains
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-22 17:13:08 +00:00
Georg Bauer 760badab98 fixed #1382 - new polish translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2365 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-21 13:12:23 +00:00
Adrian Holovaty f86004a4d3 Fixed #1376 -- Undid [2358], which broke flatpages. Thanks, Tom Tobin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-20 04:36:17 +00:00
Adrian Holovaty c72afb811b Changed 'runserver' to display the Django version, and massaged the wording a little bit.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 23:48:11 +00:00
Adrian Holovaty 2c443df341 Fixed #894 -- Moved response middleware call to base.py so that exceptions in that middleware get processed by the standard exception handling. As a nice side effect, this cuts down on a bit of redundant code.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 23:41:17 +00:00
Adrian Holovaty 53ca15cd78 Fixed #1289 -- Improved 'inspectdb' to introspect decimal_places and max_digits for FloatFields. Thanks, gandalf@owca.info
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2356 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 23:04:09 +00:00
Adrian Holovaty cf528aa420 Fixed #721 -- isAlphaNumericURL validator now allows dashes
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2353 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 22:36:16 +00:00
Adrian Holovaty 72a83f872c Fixed #1369 -- Changed shebang lines in unique-messages.py, compile-messages.py and make-message.py to use /usr/bin/env
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 22:21:31 +00:00
Adrian Holovaty 4d1bb30480 Reworded comment atop inspectdb-generated models to imply primary_key may now be introspected
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 22:06:42 +00:00
Adrian Holovaty 64153ef4d5 Implemented get_indexes() for Postgres backend, which means 'inspectdb' can introspect primary keys and unique indexes for Postgres now.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 22:04:52 +00:00
Adrian Holovaty 5710c6e2db Changed get_indexes() hook from [2346] to return 'primary_key' instead of 'keyname'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 21:57:38 +00:00
Adrian Holovaty 27b41fd9de Added better docstring to get_indexes() for MySQL backend
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 21:28:19 +00:00
Adrian Holovaty ac97cf54af Fixed #1286 -- Improved 'inspectdb' so that it introspects primary_key=True and unique=True for MySQL. Thanks, gandalf@owca.info
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 21:26:28 +00:00
Adrian Holovaty b46128225d Removed unnecessary line in d.c.meta.fields, due to [2342]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 20:55:59 +00:00
Adrian Holovaty 40809bdee4 Fixed #1038 -- Changed ForeignKey to calculate verbose_name by looking at its field name rather than the model of the related object. Thanks, Esaj
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2342 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 20:44:09 +00:00
Adrian Holovaty bb8500449b Fixed #1046 -- Made syndication feed framework not swallow TypeErrors in functions. Thanks, junzhang.jn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2341 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 20:34:14 +00:00
Adrian Holovaty 25b149a2a5 Fixed #1148 -- Fixed off-by-one error for some databases in get_DATEFIELD_list() at the edge of a year. Thanks, Hugo
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 20:18:45 +00:00
Adrian Holovaty 73ddfd8bd2 Fixed #1229 -- Added allow_empty argument to archive_year and archive_month date-based generic views
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2337 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 20:13:46 +00:00
Adrian Holovaty a10e8153f3 Fixed #1177 -- Added django.VERSION and '--version' command to django-admin.py/manage.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 18:33:09 +00:00
Adrian Holovaty c14e692952 Fixed #1250 -- Fixed NameError when trying to delete without related object permissions in admin interface. Thanks, oggie rob
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2327 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 18:20:15 +00:00
Adrian Holovaty e9c3efe7f3 Fixed #1348 -- {% ifchanged %} tag no longer renders content twice. Thanks, j.rademaker
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 18:18:03 +00:00
Adrian Holovaty 97eb38b21d Fixed #1296 -- Made SlugField maxlength configurable. Thanks, Matt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 18:15:07 +00:00
Adrian Holovaty 6b694097dc Fixed #1302 -- Added next_month and previous_month to template context in archive_month date-based generic view. Thanks, ubernostrum
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 18:03:54 +00:00
Adrian Holovaty b3f99ec9fe Fixed #1366 -- Static-file view now escapes file names. Thanks, Kieran Holland
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 17:56:46 +00:00
Adrian Holovaty 15f57d8c55 Fixed #1357 and #614 -- <select> formfields now escape values
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 17:55:41 +00:00
Adrian Holovaty bf16befc43 Fixed #1339 -- Added keys() and items() methods to session objects. Thanks, Ned Batchelder
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2300 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-10 21:33:07 +00:00
Adrian Holovaty d8b4d29004 Improved url_re in django.core.validators to accept https. Thanks, Eric Hsu
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2299 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-10 15:38:54 +00:00
Adrian Holovaty e0c915ec39 Added TEMPLATE_STRING_IF_INVALID setting, which specifies what the template system should output in case of invalid variables. Default is empty string (to match current behavior)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-09 00:31:51 +00:00
Georg Bauer ba8f23424b fixed #1333 - updated 'ja' translations
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2282 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-06 16:01:50 +00:00
Adrian Holovaty c59901a467 Improved 'inspectdb' handling of Python keywords from [2271] to use the 'keywords' module rather than hard-coding the list of keywords.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-04 20:18:18 +00:00
Adrian Holovaty 9423c4e4a8 Fixed #1328 -- Improved 'inspectdb' to handle Python reserved words as field names. Also updated docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-04 20:08:30 +00:00
Adrian Holovaty 567e4e4411 Fixed #1323 -- Added ENABLE_PSYCO. Thanks, Wojtek.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 15:18:20 +00:00
Wilson Miner 8626c0f594 Fixed positioning of ordering widget with liquid page widths.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-02 17:09:26 +00:00
Adrian Holovaty aae4f9701c Removed use of deprecated template_loader from [2230]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-02 15:00:34 +00:00
Georg Bauer fa80e70e13 fixed #1317 - updated 'sk' translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-02 11:52:35 +00:00
Georg Bauer 1d6a56dae2 fixed #1287 - comment forms are now translateable and overrideable
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-02 10:25:15 +00:00
Adrian Holovaty 2549b31970 Fixed #1292 -- Fixed potential circular-import problem in template loader. Thanks, Kieran Holland
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-02 05:07:12 +00:00
Adrian Holovaty 9789766508 Fixed #1311 -- manage.py sqlclear no longer assumes database connection is available. Thanks, jakamkon@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-02 04:50:16 +00:00
Wilson Miner 233708fb68 All admin pages except the dashboard now use liquid page widths, except in IE5.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 22:54:10 +00:00
Adrian Holovaty b4af15e66c Made small improvement to function_get_date_list
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 04:13:00 +00:00
Georg Bauer ee350b09dd fixed #1269: new and updated 'pt_BR' translations
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-27 22:23:42 +00:00
Adrian Holovaty e0e5e1e43d Fixed #939 -- Added 'monospace' fieldset class for admin CSS. Thanks, Tom Tobin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2136 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-27 16:33:26 +00:00
Adrian Holovaty e15567bf58 Fixed #1070 -- Improved date validation to limit it to dates 1900 and up.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-27 16:05:00 +00:00
Adrian Holovaty 1dc65cb6ab Fixed #1271 -- Added a 'request' template context processor, which is not activated by default.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-27 15:55:04 +00:00
Adrian Holovaty e35655081f Fixed #1244 -- Renamed templateize to templatize in django.utils.translation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-27 15:49:50 +00:00
Adrian Holovaty 23d2be1714 Fixed #1274 -- Fixed broken link in navigation in admin password-change template. Thanks, Brian Ray
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-27 15:45:10 +00:00
Wilson Miner 683c757c54 Removed example.com from default admin templates. One less thing to change in setup.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2117 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-23 22:53:50 +00:00