Donate to support Ukraine's independence.

05 Mar'12

Django fails with DEBUG=False on production

First, be sure to eliminate this issue: http://stackoverflow.com/a/4975210

Next, enable logging of all events. That will save you plenty of time.

Next, be sure to include both 404.html and 500.html in the root of your templates’ folder. See here and here for details.

If you are using nginx, be sure to include correct fastcgi configuration file: http://softwaremaniacs.org/forum/django/9093/ (post before the last). Fairly equal to http://serverfault.com/a/229188. But extensive configuration http://stackoverflow.com/a/605196 didn’t work for me.

Continue reading

05 Mar'12

MySQL with Django on Debian

First, install MySQL driver for Python:

sudo apt-get install python-mysqldb

Next, modify your config of MySQL: http://dba.stackexchange.com/a/8289

If you’ve already messed up the install, you can either drop/create database from scratch, or apply the following script to every table of your DB:

ALTER TABLE `table` CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;

Alternative mirgation path: http://docs.joomla.org/Convert_a_MySQL_database_to_UTF-8

Continue reading

05 Feb'12

Emacs Tex Mac

http://soundandcomplete.com/2010/05/13/emacs-as-the-ultimate-latex-editor/

http://www.gnu.org/software/auctex/screenshots.html

http://www.fauskes.net/code/dot2tex/

Continue reading

Category: 

12 Jan'12

Курт Кобейн

“Во мне больше нет страсти, поэтому помните: лучше сгореть, чем угаснуть. мир, любовь, сострадание.”

-Курт Кобейн

Continue reading

Category: