is_user_install_anything_useful = False
try:
import django
is_user_install_anything_useful = True
except ImportError:
pass
try:
import sqlalchemy
is_user_install_anything_useful = True
except ImportError:
pass
if not is_user_import_anything_useful:
raise ImportError('Install django or SQLalchemy')
start(){ su - UserName -c "capistrano do some shit with UserName rights" }
понижай привилегии Успешный стартап возьмет в оренду степлер
wine /path/to/exec.exe
class FooTheModel(Model):
title = models.CharField(max_length=250)
# blah
def __str__(self):
return "{} blah-blah".format(self.title)