Gary Wilson Jr
2a48fc5007
Made use of `itertools.cycle` for the `cycle` template tag.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6636 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-03 02:04:59 +00:00
Gary Wilson Jr
5997cb8ad4
Removed unused variable.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6635 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-31 04:04:07 +00:00
Gary Wilson Jr
8c442f21dc
Fixed #5816 -- Fixed a regression from [6333] that generates incorrect cookie "expires" dates when using a locale other than English. Introduced `http_date` and `cookie_date` utility functions. Thanks for the report Michael Lemaire. Thanks for the patch Karen Tracey and `SmileyChris`.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-31 03:59:40 +00:00
Gary Wilson Jr
39f28512b9
Fixed #5842 -- Marked cache template tag as "New in development version", thanks `SmileyChris`.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6633 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-31 01:46:32 +00:00
Gary Wilson Jr
0709c23046
Fixed #5832 -- Removed unneeded import in testing documentation, thanks Thomas Güttler.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6632 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-30 23:00:57 +00:00
Gary Wilson Jr
9a30ed5cd5
Fixed #5834 -- Fixed import in `formtools` documentation, thanks telenieko.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6631 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-30 22:57:46 +00:00
Gary Wilson Jr
b237537e00
Changed name of `PythonInterpreter` so as not to get confused with the use of `DJANGO_SETTINGS_MODULE mysite.other_settings`
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6630 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-30 22:50:42 +00:00
Gary Wilson Jr
ff2cb88325
Fixed #5838 -- Fixed typo in email documentation, thanks huddlej@gmail.com.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6629 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-30 22:35:15 +00:00
Gary Wilson Jr
a7a6a1b75d
Fixed imports, indention, and a long line.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6628 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-29 23:55:08 +00:00
Gary Wilson Jr
48ce8456cb
Style fixes.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6627 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-29 23:52:17 +00:00
Gary Wilson Jr
d453eda388
Corrected a typo and made some style fixes.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6626 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-28 22:32:25 +00:00
Gary Wilson Jr
26ea06b0ab
Fixed #3457 -- Allow overridding of error messages for newforms Fields.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-28 05:40:26 +00:00
Gary Wilson Jr
ee49e934d9
Ignore *.pyc.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6624 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-28 05:39:08 +00:00
Gary Wilson Jr
6e44f4dee8
Removed duplicate decimal import.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6623 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-28 03:38:08 +00:00
Gary Wilson Jr
1a3bca2b84
Wrapped some long lines and orginized imports.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6622 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-27 16:09:52 +00:00
Gary Wilson Jr
62c574e765
Fixed #5824 -- For the `startapp` command, pass the true project name to the `copy_helper` function instead of the name of the project's parent directory.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6621 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-27 16:05:59 +00:00
Gary Wilson Jr
2dfad61fcc
Added to docstring of `setup_environ` about what the function returns.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-27 16:03:24 +00:00
Malcolm Tredinnick
1580630fbd
Removed an "XFAIL" marker that was accidentally hanging around since the
...
unicode branch days.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-27 06:23:19 +00:00
Malcolm Tredinnick
91556cf22e
Fixed an invalid URL specification.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6618 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-27 06:23:05 +00:00
Malcolm Tredinnick
212aa32e2a
Fixed #5798 -- Added a missing translation marker. Thanks, maru.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6617 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-27 04:34:50 +00:00
Malcolm Tredinnick
471616aae9
Fixed #5799 -- Apparently it's not enough to have all the right letters in a
...
word; the Spanish people also want them in the right order. So fixed a typo in
the Spanish translation. Thanks, maru.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-27 04:26:44 +00:00
Jacob Kaplan-Moss
a14256aade
Committed missing file from [6608].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6612 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-26 20:08:56 +00:00
Jacob Kaplan-Moss
842a771e05
i18n security fix. Details will be posted shortly to the Django mailing lists and the official weblog.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-26 19:52:42 +00:00
Adrian Holovaty
cb6ecfe9d6
Edited docs/django-admin.txt changes from [6400]. (I'm behind on editing!)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6602 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-23 19:11:15 +00:00
Adrian Holovaty
c599de2ac6
Added a BaseDatabaseOperations.last_executed_query() hook, which allows a database backend to specify how to get the last-executed query on a given cursor. Implemented it for the psycopg2 backend. This means that for psycopg2, the SQL statements in django.db.connection.queries will now reflect the exact SQL as sent to the server, instead of a naive and misleading string-interpolated version
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6601 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-23 19:00:31 +00:00
Malcolm Tredinnick
17301f2fa0
Removed a bunch of DOS line endings. Somehow I didn't convert this correctly in
...
[6580].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-23 13:12:04 +00:00
Matt Boersma
2c22f08657
Changed field to "def_date" from "date" in new tests from [6568] so we can run the test suite against Oracle again. Refs #4140 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6595 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-22 22:04:00 +00:00
Malcolm Tredinnick
003b3c1a17
Fixed #5794 -- Be more robust when rendering a DateTimeInput widget. Thanks,
...
MikeH.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6594 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-22 13:13:12 +00:00
Malcolm Tredinnick
dbd1cb9083
Fixed #5183 -- Added __deepcopy__, pop() and popitem() to SortedDict. Based on
...
a patch from David Blewett.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6593 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-22 00:52:54 +00:00
Malcolm Tredinnick
375a6d78cb
Fixed #3496 -- Handle the case of missing (and hence '0') Content-Length header
...
in a POST to the wsgi handler. Based on a patch from Mikko Ohtamaa.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6592 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 23:52:08 +00:00
Malcolm Tredinnick
0ffeb3a42f
Fixed "django-admin.py --version" so that it doesn't print the version string
...
twice.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 22:06:52 +00:00
Malcolm Tredinnick
8e87587e89
Fixed #3265 -- Made it a validation error to have field names with trailing
...
underscores. Allowing these would enable peopleto write ambiguous queryset
filters (plus makes parsing filters much harder).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6590 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 21:53:18 +00:00
Malcolm Tredinnick
ef454b8a14
Fixed a bug in the db cache backend introduced in [6572].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6589 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 19:19:32 +00:00
Malcolm Tredinnick
0a4e4d5993
Tweaked the caching docs to be consistent about the format for database caches
...
(and fixed a formatting error).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6588 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 19:10:10 +00:00
Malcolm Tredinnick
bab4fdc9fd
Fixed #5560 -- Improved the way we create __str__ and __unicode__ methods in
...
lazy() objects. This fixes things for Jython and makes the code more readable,
even for CPython. Thanks, Leo Soto.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6587 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 18:35:31 +00:00
Malcolm Tredinnick
2adcb3f250
Fixed #5664 -- Added a Jython workaround for some assumptions in the signal
...
dispatch code. Thanks, Leo Soto.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 18:26:24 +00:00
Malcolm Tredinnick
fcbde3cbe5
Fixed #5712 -- Added more robustness to source code display in the debug view. Our behaviour is a bit more PEP 263 compliant now, too. Thanks, Thomas Güttler.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6585 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 18:15:01 +00:00
Malcolm Tredinnick
a1496b054a
Fixed #5732 -- Catch all possible errors when importing a URLConf file. This
...
leads to error messages that contain the name of the problem file (useful when
the problem is part of an include() import).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6584 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 17:51:06 +00:00
Malcolm Tredinnick
3ec6568e64
Modified the test harness to respect the LANGUAGE_CODE setting. Also changed
...
Django's own test runner to always use 'en' for LANGUAGE_CODE when testing
core. Fixed #4709
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6583 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 17:26:32 +00:00
Malcolm Tredinnick
7ca708140a
Fixed #2920 -- Removed _() from builtins.
...
This is backwards incompatible, but easy to work around.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 17:14:25 +00:00
Malcolm Tredinnick
5f51964be2
Changed the location of language codes to match the project settings file from [6123].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 16:20:02 +00:00
Malcolm Tredinnick
6fbf653aa5
Fixed #1065 -- Added a "cache" template tag. Thanks, Ian Maurer and, particularly, Nick Lane.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 15:48:40 +00:00
Malcolm Tredinnick
c64a6c98c4
Removed unwanted import that snuck into [6578].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 14:57:05 +00:00
Malcolm Tredinnick
1671fc48ab
Changed the default form presentation of datetime values to not include the
...
fractional second values (they usually aren't going to be needed). Based on
patches from yi.codeplayer@gmail.com , andrews and Wiliam Alves de Souza. Fixed #4428 , #4487
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 14:50:47 +00:00
Malcolm Tredinnick
f5831b03c9
DateTimeField can now clean values that come from SplitDateTimeWidget.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6577 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 14:50:20 +00:00
Malcolm Tredinnick
d79c6a0125
Fixed #5013 -- Corrected the documentation about which how further middleware
...
processing is done after request or view middleware returns something. Thanks,
Jason Yan.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 12:24:37 +00:00
Malcolm Tredinnick
4c3586582d
Fixed #4493 -- Noted that the LocaleMiddleware's placement w.r.t
...
CacheMiddleware is important. Thanks, SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6575 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 12:12:45 +00:00
Malcolm Tredinnick
df644cbab9
Fixed #5785 -- Updated Catalan and Spanish translations. Thanks, Marc Garcia.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6573 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20 15:36:05 +00:00
Malcolm Tredinnick
714c09b8bd
Fixed #4831 -- Added an "add" cache key method, for parity with memcached's
...
API. This works for all cache backends. Patch from Matt McClanahan.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20 15:16:34 +00:00
Malcolm Tredinnick
b678601df3
Fixed #4123 -- Changed the firstof template tag to correctly handle a literal
...
string as its last argument. Thanks, Wesley Fok and Matt Boersma.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20 15:01:31 +00:00