- [Show page]
- [Old revisions]
- [[unknown link type]]
- []
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
python:django [2014/12/10 11:52] vondra [South] |
python:django [2015/01/28 13:12] (current) vondra [Database settings] |
||
---|---|---|---|
Line 61: | Line 61: | ||
</code> | </code> | ||
...put this on the beginning of the source file. | ...put this on the beginning of the source file. | ||
+ | |||
+ | |||
+ | ====Database settings==== | ||
+ | MyISAM storage: | ||
+ | <code> | ||
+ | mysql>>> ALTER TABLE search_ftext ENGINE = MyISAM; | ||
+ | </code> | ||
+ | |||
+ | Create fulltext index | ||
+ | |||
+ | <code> | ||
+ | mysql>>> ALTER TABLE search_ftext ADD FULLTEXT (text); | ||
+ | </code> | ||
+ | |||
+ | if Django keeps falling after editing in admin - convert table DjangoAdminLog to the same collation as other tables: | ||
+ | <code> | ||
+ | alter table auth_user_user_permissions convert to character set utf8 collate utf8_unicode_ci; | ||
+ | </code> |
python/django.1418208760.txt.gz · Last modified: 2014/12/10 11:52 by vondra