Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/management/commands/createcachetable.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #24560 -- Added a --dry-run mode to the ↵Adam Chainz2015-04-091-4/+16
| | | | createcachetable command.
* Fixed #24351, #24346 -- Changed the signature of ↵Loic Bistuer2015-02-201-1/+1
| | | | | | | | | | | | | | | | allow_migrate(). The new signature enables better support for routing RunPython and RunSQL operations, especially w.r.t. reusable and third-party apps. This commit also takes advantage of the deprecation cycle for the old signature to remove the backward incompatibility introduced in #22583; RunPython and RunSQL won't call allow_migrate() when when the router has the old signature. Thanks Aymeric Augustin and Tim Graham for helping shape up the patch. Refs 22583.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+3
|
* Converted remaining management commands to argparseClaude Paroz2014-06-141-9/+9
|
* Avoided transactional DDL on castrated databases.Aymeric Augustin2014-03-221-1/+4
| | | | | | | Fixed a test failure that appeared after 753a22a6, although the bug existed before that commit. Refs #22308.
* Fixed transaction handling in two management commands.Aymeric Augustin2014-03-211-1/+1
| | | | | Previously, when createcachetable and flush operated on non-default databases, they weren't atomic.
* Removed legacy transaction management per the ↵Aymeric Augustin2014-03-211-1/+1
| | | | deprecation timeline.
* Ensure cursors are closed when no longer needed.Michael Manfre2014-02-021-9/+9
| | | | | | This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
* Fixed #16905 -- Added extensible checks (nee validation) ↵Russell Keith-Magee2014-01-201-1/+1
| | | | | | | | | | | framework This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
* Fixed #21012 -- New API to access cache backends.Curtis Maloney2013-11-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks Curtis Malony and Florian Apolloner. Squashed commit of the following: commit 3380495e93f5e81b80a251b03ddb0a80b17685f5 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:18:07 2013 +0100 Looked up the template_fragments cache at runtime. commit 905a74f52b24a198f802520ff06290a94dedc687 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:19:48 2013 +0100 Removed all uses of create_cache. Refactored the cache tests significantly. Made it safe to override the CACHES setting. commit 35e289fe9285feffed3c60657af9279a6a2cfccc Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:23:57 2013 +0100 Removed create_cache function. commit 8e274f747a1f1c0c0e6c37873e29067f7fa022e8 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:04:52 2013 +0100 Updated docs to describe a simplified cache backend API. commit ee7eb0f73e6d4699edcf5d357dce715224525cf6 Author: Curtis Maloney <curtis@tinbrain.net> Date: Sat Oct 19 09:49:24 2013 +1100 Fixed #21012 -- Thread-local caches, like databases.
* Fixed all E226 violationsAlex Gaynor2013-11-031-1/+1
|
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-1/+1
|
* Fixed #21267 -- Fixed E502 pep8 warningsAlasdair Nicol2013-10-181-1/+1
|
* Fixed #15888 -- Made tablename argument of ↵Claude Paroz2013-10-141-10/+30
| | | | | | | createcachetable optional Thanks Aymeric Augustin for the report and the documentation and Tim Graham for the review.
* Rename allow_syncdb to allow_migrateAndrew Godwin2013-07-301-1/+1
|
* Replaced `and...or...` constructs with PEP 308 ↵Ramiro Morales2013-05-271-2/+2
| | | | conditional expressions.
* Replaced an antiquated pattern.Aymeric Augustin2013-05-171-1/+1
| | | | Thanks Lennart Regebro for pointing it out.
* Deprecated transaction.commit/rollback_unless_managed.Aymeric Augustin2013-03-111-11/+10
| | | | | | | | Since "unless managed" now means "if database-level autocommit", committing or rolling back doesn't have any effect. Restored transactional integrity in a few places that relied on automatically-started transactions with a transitory API.
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-071-2/+2
| | | | | | | | | | | * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
* Fixed #18269 -- Applied unicode_literals for Python 3 ↵Claude Paroz2012-06-071-1/+3
| | | | | | | compatibility. Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
* Used CommandError in createcachetable command.Claude Paroz2012-05-271-7/+6
| | | | | Raising CommandError whenever a management command meets an error condition is the standard way to handle errors in commands.
* Fixed #18325 -- Wrapped self.stdout/stderr in ↵Claude Paroz2012-05-191-2/+2
| | | | OutputWrapper class
* Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz2012-04-291-1/+1
| | | | | Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
* Fixed #17820 -- Fixed more occurrences of redundant ↵Ramiro Morales2012-03-101-1/+1
| | | | | | | | | | handling of management commands options. They had been missen in the first attempts or had been introduced afterwards. Refs #13760, #10080, #17799. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17678 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17300 -- Prevented createcachetable from crashing ↵Aymeric Augustin2012-01-081-4/+12
| | | | | | when the cache table already exists. Thanks Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15255 -- Ensured createcachetable honors database ↵Aymeric Augustin2011-11-191-4/+8
| | | | | | routers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13760 -- Cleaned up unnecessary default option ↵Julien Phalip2011-10-231-1/+1
| | | | | | handling in a bunch of management commands. Thanks to Paul McMillan for the report and to adamv and Claude Paroz for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Rolled back r16510, r16513 and r16514 because it wasn't ↵Jannis Leidel2011-07-051-8/+4
| | | | | | ready. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16515 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15255 -- Stopped database cache from ignoring ↵Jannis Leidel2011-07-041-4/+8
| | | | | | database routers when creating the cache table. Thanks, aaugustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11623 -- Corrected table name quoting in db cache ↵Russell Keith-Magee2010-02-111-2/+2
| | | | | | backend. Thanks to Fraser Nevett for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #1142 -- Added multiple database support.Russell Keith-Magee2009-12-221-3/+14
| | | | | | | | | | | | | | | | | This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Make sure we only create the minimum number of table ↵Malcolm Tredinnick2008-06-301-2/+2
| | | | | | | | | | | | | indexes for MySQL. This patch simplifies a bunch of code for all backends and removes some duplicate index creation for MySQL, in particular (versions 4.x and later). Patch from Nis Jørgensen. Fixed #5671, #5680, #7170, #7186. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7790 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5369 -- Refactored the django-admin.py help ↵Adrian Holovaty2007-09-091-1/+1
| | | | | | system, allowing each subcommand to register its own options. Thanks for the patch, Todd O'Bryan git-svn-id: http://code.djangoproject.com/svn/django/trunk@6075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Refactored quote_name() to ↵Adrian Holovaty2007-08-201-5/+6
| | | | | | DatabaseOperations.quote_name(). Refs #5106 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Improved error handling for management.py commands, ↵Russell Keith-Magee2007-08-161-3/+4
| | | | | | especially for no argument or non-applabel argument commands. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5903 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Major refactoring of django.core.management -- it's now ↵Adrian Holovaty2007-08-161-0/+40
a package rather than a 1730-line single module. All django-admin/manage.py commands are now stored in separate modules. This is backwards-incompatible for people who used django.core.management functions directly git-svn-id: http://code.djangoproject.com/svn/django/trunk@5898 bcc190cf-cafb-0310-a4f2-bffc1f526a37