Commit Graph

449 Commits

Author SHA1 Message Date
Adrian Holovaty bd5b35069b Fixed #2025 -- Fixed some issues with URL reversal, which still isn't ready for prime time. Thanks, medhat
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-02 04:38:16 +00:00
Luke Plant dbcd2fe985 Fixed #2045 - TypeError thrown if a form does not have the correct enctype for uploading
files.  It throws a ValidationError now, as it should.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3048 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-01 20:47:34 +00:00
Adrian Holovaty cb9cb2045b Fixed #720 -- Added first_on_page() and last_on_page() methods to ObjectPaginator. Thanks, m@bagai.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-01 04:29:39 +00:00
Adrian Holovaty 1bf991abb3 Fixed #2049 -- Made isValidEmail validator wider in scope. Thanks, mir@noris.de
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3026 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-31 18:08:28 +00:00
Adrian Holovaty d3b1a9ba39 Fixed #2015 -- Fixed sqlinitialdata regexp to handle empty string insertions. Thanks, Steven Armstrong
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-30 01:11:27 +00:00
Adrian Holovaty 374d02e598 Fixed #1023 -- Base handler no longer calls mail_admins() on SystemExit, in case of forked processes called from views. Thanks, Hugo
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2990 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-26 17:30:40 +00:00
Adrian Holovaty 0fd9eef86f Fixed #1935 -- Initial SQL data now works in SQLite if there are multiple statements. Thanks, jpellerin@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-26 05:20:21 +00:00
Adrian Holovaty f375b54503 Fixed #1634 -- Changed django.core.mail to include 'Date' header in e-mails. Thanks, Eric Walstad
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-26 04:40:48 +00:00
Malcolm Tredinnick 816b65f260 Prevent people from using "startapp" to create apps with the same name as their project. Might stop some of the accidents.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2946 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-19 07:40:06 +00:00
Adrian Holovaty d9c4af6b37 Added first stab at reverse matching to urlresolvers.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-16 04:05:55 +00:00
Jacob Kaplan-Moss aa11b3ea50 Fixed #1235: email sent from {{{django.core.mail}}} will now be encoded using
the value of the {{{DEFAULT_CHARSET}}} setting. Thanks, igor@goryachev.org and akaihola.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@2901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-13 17:18:42 +00:00
Adrian Holovaty c63372f3c4 Fixed #1819 -- inspectdb no longer puts null=True for TextField and CharField. Thanks, mir@noris.de
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-09 15:36:14 +00:00
Adrian Holovaty 058ab898b0 Improved runserver to display 'CONTROL-C' vs. 'CTRL-BREAK' based on the current platform
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-06 03:29:22 +00:00
Adrian Holovaty cca0e7346d Fixed #1762 -- Fixed Windows error in django.core.management. Thanks, ross.lazarus@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-05 04:08:14 +00:00
Adrian Holovaty 427a54b4a3 Fixed #1719 -- Added rlcompleter autocompletion to 'manage.py shell' if IPython is not used.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2842 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-05 03:17:51 +00:00
Adrian Holovaty 9fec605d8d Fixed #1766 -- Fixed bug in syncdb where it allowed two models to have the same database table. Thanks, Ian Clelland
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-05 02:38:32 +00:00
Adrian Holovaty f69cf70ed8 MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-02 01:31:56 +00:00
Adrian Holovaty 00b3891524 Fixed #1626 -- Fixed a bunch of typos in comments and docs. Thanks, Dexter
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-12 13:35:31 +00:00
Adrian Holovaty 853ee34191 Fixed #1531 -- Fixed eager exception catching that caused the template system to report a base template didn't exist when indeed it does exist but contains an {% include %} of a nonexisting template
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2681 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-12 03:31:03 +00:00
Adrian Holovaty c862e43f7f Negligible spacing change to core/template/loader.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-12 03:29:41 +00:00
Adrian Holovaty 8ac114c017 Removed unneeded 'import sys' from base.py handler
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2668 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-11 03:30:10 +00:00
Adrian Holovaty 51a6d81d72 Fixed #1551 -- Improved base handler to not lose track of important exception in case of exceptions within repr(). Thanks, Ned
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2667 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-11 03:29:01 +00:00
Adrian Holovaty 8d70ed4b25 Fixed #1555 -- Added EMAIL_PORT setting. Thanks, bde3
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2665 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-11 03:23:03 +00:00
Adrian Holovaty cd7dbd8f00 Converted django.core.mail to use 'from django.conf import settings' instead of importing specific settings directly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2664 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-11 03:19:57 +00:00
Adrian Holovaty b9e40b14bc Renamed OneToOne to OneToOneRel to be consistent with ManyToManyRel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-10 03:35:56 +00:00
Adrian Holovaty b8d8aca5fd Renamed ManyToOne to ManyToOneRel to be consistent with ManyToManyRel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2649 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-10 03:34:47 +00:00
Adrian Holovaty e3e271ff92 Fixed #1600 -- Renamed ManyToMany to ManyToManyRel so people get a clearer error if they use ManyToMany instead of ManyToManyField
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-10 03:32:38 +00:00
Adrian Holovaty 0162a3b54f Fixed #1590 -- Changed MySQL get_last_insert_id() implementation to use cursor.lastrowid instead of a separate SELECT statement. Thanks, Andy Dustman
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2645 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-10 00:32:42 +00:00
Adrian Holovaty bc4638d722 Fixed #1569 -- HttpResponse now accepts iterators. Thanks, Maniac
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2639 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-09 23:54:34 +00:00
Adrian Holovaty 341d1eb022 Fixed #1550 -- Changed MatchesRegularExpression validator to use .search(), not .match(). Thanks, Gary Wilson
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2588 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 21:39:15 +00:00
Adrian Holovaty b353103cb6 Fixed #1500 -- Changed MySQL AutoField to be integer, not mediumint. Thanks, ejf-django
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 17:46:53 +00:00
Adrian Holovaty 67cbb5c248 Fixed #1442 -- Fixed multithreading problem with various database backends. Thanks, Eugene Lazutkin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 17:39:53 +00:00
Adrian Holovaty 1edef8ede9 Fixed #1548 -- Improved caching of related objects, so when clist = poll.get_choice_list(), each choice in clist has its poll cache filled. Thanks, Ned Batchelder
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2574 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 16:51:17 +00:00
Adrian Holovaty 332c4bd695 Removed stray 'print' statement in ManyToManyField.flatten_data(). Thanks, burivuh
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2558 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-24 19:13:21 +00:00
Adrian Holovaty fe24eca81a Fixed #1529 -- Added support for authenticated SMTP to django.core.mail. Thanks, Bruce Kroeze
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-22 19:47:15 +00:00
Adrian Holovaty 401b83f172 Fixed bug in [2531]. Thanks, Ned
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2533 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-20 01:04:09 +00:00
Adrian Holovaty 33c4e307f2 Simplified two unnecessary list comprehensions in core/meta/__init__.py. Thanks, Ned Batchelder
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-19 23:41:59 +00:00
Adrian Holovaty e4b48a8b92 Fixed #1058 -- Fixed typo in wordwrap filter documentation. Thanks, kieranholland.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 05:53:58 +00:00
Adrian Holovaty 6d9f4e4ef6 Fixed #1213 -- Changed value of NOT_PROVIDED so that it's not a string, to prevent possible (but highly unlikely) collisions. Thanks, akaihola
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01 03:51:55 +00:00
Adrian Holovaty ace140662b Added note to mysql backend about DATE_FORMAT not working. Refs #1423
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01 03:17:24 +00:00
Jacob Kaplan-Moss f15a983d88 Fixed #1336 -- made USStateField work correctly when data is None (thanks, chrisb)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 23:45:17 +00:00
Adrian Holovaty 250281361d Changed get_object() not to use 'ordering' parameter from the model. Thanks, Ned Batchelder. Also updated some unit tests to show correct DoesNotExist output
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 17:24:17 +00:00
Adrian Holovaty de66a3a7da Rolled back [2390] temporarily to test against some other edge cases
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 17:18:27 +00:00
Adrian Holovaty 79633b280c Changed get_object() not to use 'ordering' parameter from the model. Thanks, Ned Batchelder
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 17:14:49 +00:00
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 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
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