This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import os | |
import StringIO | |
import tarfile | |
import boto | |
MOUNT_LOCATION = '/Volumes/BOSS_RC-300' | |
UPLOAD_REGION = '<your-region-here>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# post_commit and post_rollback transaction signals for Django with monkey patching | |
# Author Grégoire Cachet <gregoire.cachet@gmail.com> | |
# http://gist.github.com/247844 | |
# | |
# Usage: | |
# You have to make sure to load this before you use signals. | |
# For example, create utils/__init__.py and then utils/transaction.py contening | |
# this gist in you project. Then add "import utils.transaction" in your project | |
# __init__.py file | |
# |