Skip to content

Instantly share code, notes, and snippets.

View rizumu's full-sized avatar
:octocat:

Thomas Schreiber rizumu

:octocat:
View GitHub Profile
@rizumu
rizumu / translate.py
Created August 31, 2011 22:49
translate
"""A management command for extracting translation messages for the whole project."""
import glob
import os
from django.conf import settings
from django.core.management.base import NoArgsCommand
class Command(NoArgsCommand):
diff -r 832f7d4a6f4c deploy/gunicorn_conf.py
--- a/deploy/gunicorn_conf.py Thu Oct 28 14:29:39 2010 +0200
+++ b/deploy/gunicorn_conf.py Thu Oct 28 13:36:19 2010 -0400
@@ -1,16 +1,31 @@
import sys
-from os import sysconf
+import os
from pkg_resources import load_entry_point
def numCPUs(default=1):
#!/usr/bin/env bash
find . \( -name "*.pyc" -o -name "*.pyo" \) -exec rm -v {} \;

Should probably be in every virtualenv, and always kept up to date:

  • Pip
  • Werkzeug
  • PIL
  • yolk

Packages that may not be in virtualenv, but still installed via pip:

  • ipdb ipython