1
0
mirror of https://github.com/django/django.git synced 2025-07-04 01:39:20 +00:00

923 Commits

Author SHA1 Message Date
Adrian Holovaty
df794701d0 Fixed small typo in docs/cache.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@812 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-09 01:02:30 +00:00
Adrian Holovaty
b6fd05e445 Added CACHE_MIDDLEWARE_KEY_PREFIX to global_settings
git-svn-id: http://code.djangoproject.com/svn/django/trunk@811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-09 01:02:19 +00:00
Adrian Holovaty
d65526d688 Fixed #580 -- Added mega support for generating Vary headers, including some view decorators, and changed the CacheMiddleware to account for the Vary header. Also added GZipMiddleware and ConditionalGetMiddleware, which are no longer handled by CacheMiddleware itself. Also updated the cache.txt and middleware.txt docs. Thanks to Hugo and Sune for the excellent patches
git-svn-id: http://code.djangoproject.com/svn/django/trunk@810 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-09 00:55:08 +00:00
Adrian Holovaty
a5a89b5a43 Moved vary decorators from django.utils.cache to django.views.decorators.vary
git-svn-id: http://code.djangoproject.com/svn/django/trunk@809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-09 00:37:56 +00:00
Adrian Holovaty
8aa98af6bb Added django.utils.cache, from Hugo's #580 patch. Refs #580.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@808 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08 23:19:21 +00:00
Adrian Holovaty
71564b4349 Added django.utils.decorators, from Hugo's #580 patch. Refs #580.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@807 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08 21:44:37 +00:00
Adrian Holovaty
a933432a70 Fixed #473 -- Added a MysqlDebugWrapper to use for MySQL with DEBUG=True. It displays more informative error messages for MySQL warnings. Thanks for the patch, mlambert@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@806 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08 21:00:25 +00:00
Adrian Holovaty
b63abf0379 Fixed bug in tests/runtests.py -- some versions of MySQLdb require an argument to connection.autocommit()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08 20:56:34 +00:00
Adrian Holovaty
6beab20722 Fixed #374 -- Filtering by BooleanField now works in admin with SQLite. Thanks, davidschein
git-svn-id: http://code.djangoproject.com/svn/django/trunk@804 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08 20:23:11 +00:00
Georg Bauer
4fc6d40d00 i18n: again cleaned up make-messages.py - now the line numbers for templates will be correct.
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@801 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08 00:01:25 +00:00
Adrian Holovaty
d93c68ab5f Fixed #586 -- Fixed bug in raw_id_admin caused by [785]. Thanks for the heads-up, slashzero
git-svn-id: http://code.djangoproject.com/svn/django/trunk@800 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-07 23:39:06 +00:00
Georg Bauer
2442ceaa3f i18n: make-messages.py now correctly handles creation of new languages
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@799 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-07 23:20:24 +00:00
Georg Bauer
9fb343a443 i18n: made the make-messages.py script work much better by using msgmerge and msguniq
and fixed the german translation file (mostly the header)


git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@798 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-07 23:18:29 +00:00
Adrian Holovaty
9f7e2f38dd Fixed ReST formatting for docs/django-admin.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@795 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 17:29:59 +00:00
Adrian Holovaty
eaa8db131d Changed docs/django-admin.txt to add a link to diveintopython's explanation of Python import search path
git-svn-id: http://code.djangoproject.com/svn/django/trunk@794 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 17:27:13 +00:00
Adrian Holovaty
c8930e3af4 Fixed #357 -- Added a '--pythonpath' option to django-admin. Thanks for the patch, Hugo
git-svn-id: http://code.djangoproject.com/svn/django/trunk@793 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 17:22:23 +00:00
Adrian Holovaty
485042b74d Fixed #595 -- Fixed error when sorting API results descending with custom 'select' parameters. Thanks for the patch, Robert Wittams
git-svn-id: http://code.djangoproject.com/svn/django/trunk@792 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 15:52:30 +00:00
Adrian Holovaty
9fe02e6b65 Made raw_id_admin work with non-integer primary keys
git-svn-id: http://code.djangoproject.com/svn/django/trunk@790 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 14:43:07 +00:00
Adrian Holovaty
cb628c0cb7 Changed django.core.management to remove a couple of hard-coded slashes from os.path.join calls. Thanks, Stuart Langridge
git-svn-id: http://code.djangoproject.com/svn/django/trunk@789 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 14:30:35 +00:00
Georg Bauer
b70beda043 i18n: added support for the new DEFAULT_CHARSET setting in translators
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@788 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 10:07:45 +00:00
Georg Bauer
cb09e10eb2 i18n: merged r776:r786 from trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@787 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 10:04:07 +00:00
Adrian Holovaty
ab9aacd4db Fixed #333 and #440 -- Split DEFAULT_MIME_TYPE setting into DEFAULT_CONTENT_TYPE and DEFAULT_CHARSET. Thanks, Maniac.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 02:27:08 +00:00
Adrian Holovaty
261ab166ce Fixed #586 -- raw_id_admin now works with non-integer primary keys
git-svn-id: http://code.djangoproject.com/svn/django/trunk@785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 01:51:30 +00:00
Adrian Holovaty
8dda2aeaa3 Improved model validator to check admin.list_filter and type-check admin.list_display
git-svn-id: http://code.djangoproject.com/svn/django/trunk@784 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 01:41:54 +00:00
Adrian Holovaty
c3fa47edb8 Added USE_FLAT_PAGES setting, which defaults to True.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@782 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-05 23:36:17 +00:00
Adrian Holovaty
16f9b08611 Clarified get_FOO_list part of docs/db-api.txt to specify keyword arguments are also accepted
git-svn-id: http://code.djangoproject.com/svn/django/trunk@781 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-05 22:47:36 +00:00
Georg Bauer
04a66b6e55 i18n: added russian translation and added patch for sr translation. thx dimas and petar.
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@779 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-05 13:38:56 +00:00
Georg Bauer
05f9ed4588 i18n: added sr-translation patch from #65
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@778 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-05 12:14:02 +00:00
Georg Bauer
a3899f2226 i18n: make-messages now supports directory names with blanks in them
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@777 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-05 10:34:54 +00:00
Georg Bauer
ce1e5ca769 i18n: added first take at spanish translation (thanks heimy!)
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@776 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-04 20:10:36 +00:00
Georg Bauer
6e2b74d65e i18n: merged r722:774 from trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@775 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-04 19:34:43 +00:00
Jacob Kaplan-Moss
837afc5a29 Changed default JING_PATH setting to be something that might actually be useful.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-04 18:05:37 +00:00
Adrian Holovaty
78b8fcc235 Fixed typo in docs/outputting_pdf.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@772 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-04 15:17:22 +00:00
Adrian Holovaty
6f07f717c0 Fixed #591 -- fixed typo in docs/templates_python.txt. Thanks, Boffbowsh
git-svn-id: http://code.djangoproject.com/svn/django/trunk@771 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-04 13:34:59 +00:00
Georg Bauer
8c2b8aaee6 i18n: updated the documentation for the new features
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@770 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-03 12:33:50 +00:00
Georg Bauer
5e24a67952 take django_language either from GET or POST (GET has preference if both
are given)


git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@769 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-03 12:20:18 +00:00
Georg Bauer
4196ff0b17 i18n: added GET-support to language selection, added serbian translation file and added some convenience
stuff to the DjangoContext - all from a patch by nesh on the list. Thanks nesh! References #65.


git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@768 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-03 10:15:11 +00:00
Georg Bauer
ed3f73674b i18n: added preliminary .it translations. thanks C8N.
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@767 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-02 18:35:32 +00:00
Georg Bauer
6dec479396 i18n: fixed a bug in one admin template and updated the german translations for the admin
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@764 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 17:33:40 +00:00
Georg Bauer
0649365f43 i18n: changed all admin templates to use the new shorter {{ _(..) }} syntax for i18n strings.
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 16:47:15 +00:00
Georg Bauer
bd9cb4c9f4 i18n: fixed a rather stupid bug in language discovery (sort descending by preference value instead ascending)
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@762 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 16:45:16 +00:00
Georg Bauer
009694db63 i18n: i18n string resolution now does string interpolation against the context, too
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@761 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 16:35:20 +00:00
Georg Bauer
ae3c26df62 i18n: changed resolve_variable and resolve_variable_with_filters to allways
accept string constants and to accept i18n string constants with _(), too.
That way the i18n tag isn't needed in simple cases.


git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 16:24:21 +00:00
Georg Bauer
280747f757 i18n: language en is now successfully recognized on accept-header parsing
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@759 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 15:45:07 +00:00
Georg Bauer
59052e48db i18n: switched ngettext to make use of the standard ngettext instead simulating via gettext
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 13:28:59 +00:00
Georg Bauer
2c6e366f0a i18n: the i18n tag now supports gettext_noop. unittests updated.
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@757 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 13:05:57 +00:00
Georg Bauer
26bc142f87 i18n: updated the documentation to list ngettext
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 12:56:12 +00:00
Georg Bauer
4eb73a3584 i18n now has support for ngettext and has unittests
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@755 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 12:47:22 +00:00
Adrian Holovaty
da71528717 Added missing period to docs/outputting_pdf.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@754 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 22:07:19 +00:00
Adrian Holovaty
53581d6d8d Small tweak to docs/outputting_pdf.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@753 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 22:05:44 +00:00