Дата и timestamp в Python

Posted by & filed under python.

Дата в timestamp: t1=time.mktime(time.strptime(‘2000-01-01’, ‘%Y-%m-%d’)) Из timestamp в дату: t4=datetime.date.fromtimestamp(t1)

Одна точка входа для FastCGI (Python)

Posted by & filed under Apache.

Апачевский конфиг позволяющий создать одну точку входа <VirtualHost z2.world.com:80> ServerAdmin a@b.c DocumentRoot /var/www/z2 ServerName z2.world.com:80 ErrorLog /var/www/log/error.log SetHandler fastcgi-script ScriptAliasMatch ^(/.*)$ /var/www/z2/publisher.py$1 <Directory /> Options FollowSymLinks +ExecCGI AllowOverride All </Directory> </VirtualHost>