CARVIEW |
Select Language
HTTP/2 200
server: nginx
content-type: text/html;charset=utf-8
cache-control: must-revalidate
expires: Fri, 01 Jan 1999 00:00:00 GMT
set-cookie: trac_form_token=5e6e5d3dfbe663558335819d; HttpOnly; Path=/; Secure
set-cookie: trac_session=bf7a8bb79de3743a28dcb0d1; expires=Tue, 21 Oct 2025 05:24:40 GMT; HttpOnly; Path=/; Secure
strict-transport-security: max-age=31536000; includeSubDomains; preload
permissions-policy: interest-cohort=()
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
accept-ranges: bytes
via: 1.1 varnish, 1.1 varnish
date: Wed, 23 Jul 2025 05:24:41 GMT
x-served-by: cache-fra-eddf8230073-FRA, cache-bom-vanm7210054-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1753248281.689469,VS0,VE329
vary: Accept-Encoding
MySQLStorageEngine – Django
Back to Top
Django
The web framework for perfectionists with deadlines.
Issues
As discussed in the documentation(1):
- After syncdb, execute an ALTER TABLE statement to convert tables
ALTER TABLE <tablename> ENGINE=INNODB;
- or, change settings to use the init_command option for MySQLdb:
# settings.py DATABASES = { 'default': { 'OPTIONS': { # works because South changes table creation 'init_command': 'SET storage_engine=INNODB', } } }
- or, use post_syncdb trick listed in wiki:AlterModelOnSyncDB,
- or, create a management.py file along with your app, with:
# management.py from django.db import connection # syncdb does "import_module('.management', app_name)" # IOW, this gets executed before creating the tables. connection.cursor().execute('SET storage_engine=InnoDB;')
- or, if you use South(2) for migrations, with:
# settings.py DATABASES = { 'default': { 'STORAGE_ENGINE': 'INNODB' } }
- or, if you can, edit my.cnf
# my.cnf default-storage-engine=InnoDB
Last modified
14 years ago
Last modified on Dec 7, 2011, 3:33:53 PM
Note:
See TracWiki
for help on using the wiki.
Download in other formats:
Django Links
Learn More
Get Involved
Follow Us
- Hosting by In-kind donors
- Design by Threespot &
© 2005-2025 Django SoftwareFoundation unless otherwise noted. Django is a registered trademark of the Django Software Foundation.