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
iff --git a/django/template/__init__.py b/django/template/__init__.py | |
index 8c89c67..576e7b1 100644 | |
--- a/django/template/__init__.py | |
+++ b/django/template/__init__.py | |
@@ -839,6 +839,14 @@ class VariableNode(Node): | |
def __repr__(self): | |
return "<Variable Node: %s>" % self.filter_expression | |
+ def clean_pks(self, output): | |
+ # avoid localization of pk or ids |
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
# /etc/amanda/felipe/VPS01/amanda.conf | |
# Configuration for felipe vps at 173.230.241.146 | |
# - One full per week, Six incremental | |
# - 14 types | |
org "FELIPE-VPS01" | |
mailto "felipe" | |
dumpuser "felipe" | |
inparallel 2 |
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
def get_tmpdir(tmpdirs=tuple()): | |
# use a kind of cache | |
if not tmpdirs and os.environ.get('SET_TMPDIR_CHOICE',False): | |
return os.environ['SET_TMPDIR_CHOICE'] | |
# starting here is a snipped copyed from /usr/lib/python2.7/tempfile.py | |
dirlist = [] | |
# First, try the environment. |
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
# Apps settings are loaded from own settings files. | |
# This code allow you to use a structure similar to that: | |
# project/project/settings | |
# ├── __init__.py | |
# ├── debug_toolbar_settings.py | |
# ├── django_facebook_settings.py | |
# └── settings_local.py | |
SETTINGS_ROOT = dirname(abspath(__file__)) | |
def load_settings(settings_name): | |
try: |
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
(qas5)sistemas@PLAPWEBP074:~/virtualenvs/qas5/portal$ grep log deploy/uwsgi.ini | |
; logging stuff | |
daemonize=/home/sistemas/virtualenvs/qas5/logs/uwsgi.log | |
; when true, disable-logging will disable request logging, only errors will be logged. | |
disable-logging=true | |
logdate=true | |
log-zero=true | |
log-5xx=true | |
log-maxsize=104857600 |
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
# python -vvvvvvvvvvvvvvvvvvvvv | |
# installing zipimport hook | |
import zipimport # builtin | |
# installed zipimport hook | |
# trying /usr/lib/python2.7/site.so | |
# trying /usr/lib/python2.7/sitemodule.so | |
# trying /usr/lib/python2.7/site.py | |
# /usr/lib/python2.7/site.pyc matches /usr/lib/python2.7/site.py | |
import site # precompiled from /usr/lib/python2.7/site.pyc | |
# trying /usr/lib/python2.7/os.so |
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
# python -S -v | |
# installing zipimport hook | |
import zipimport # builtin | |
# installed zipimport hook | |
import encodings # directory /usr/lib/python2.7/encodings | |
# /usr/lib/python2.7/encodings/__init__.pyc matches /usr/lib/python2.7/encodings/__init__.py | |
import encodings # precompiled from /usr/lib/python2.7/encodings/__init__.pyc | |
# /usr/lib/python2.7/codecs.pyc matches /usr/lib/python2.7/codecs.py | |
import codecs # precompiled from /usr/lib/python2.7/codecs.pyc | |
import _codecs # builtin |
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
root@svm810:~# apt-get upgrade | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following packages have been kept back: | |
apt-utils aptitude bind9 bind9-host bind9utils bison dnsutils erlang-nox flex ghostscript libavcodec53 libavutil51 libbuilder-ruby libbuilder-ruby1.8 | |
libcmdparse2-ruby1.8 libeventmachine-ruby1.8 libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgs9 libgs9-common libi18n-ruby | |
libi18n-ruby1.8 libjpeg8 libldap-2.4-2 liblockfile1 libpackagekit-glib2-14 libquicktime-dev libquicktime2 librack-ruby librack-ruby1.8 librmagick-ruby | |
librmagick-ruby-doc librmagick-ruby1.8 libsdl1.2debian libswscale2 libx11-6 libx11-dev libxdamage1 libxext-dev libxext6 libxfixes3 libxrender1 libxxf86vm1 | |
linux-image-virtual mesa-common-dev packagekit packagekit-backend-aptcc packagekit-bash-completion php-pear php5 php5-cli php5-common php5-curl php5-dev |
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
$ python teste.py | |
Exception in thread Thread-2: | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner | |
self.run() | |
File "/usr/lib/python2.7/threading.py", line 504, in run | |
self.__target(*self.__args, **self.__kwargs) | |
File "/usr/lib/python2.7/multiprocessing/pool.py", line 319, in _handle_tasks | |
put(task) | |
PicklingError: Can't pickle <type 'function'>: attribute lookup __builtin__.function failed |
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
felipe@felipe-G51JX:~/projects/github_projects_2/clones$ git clone [email protected]:t_prd -vvvvv | |
Cloning into 'tsn_prd'... | |
Server supports multi_ack_detailed | |
Server supports side-band-64k | |
Server supports ofs-delta | |
want 8baa2c4a89bbe5e989d2d63905b0ac295e579557 (HEAD) | |
want 8baa2c4a89bbe5e989d2d63905b0ac295e579557 (refs/heads/master) | |
done | |
remote: Counting objects: 3245, done. | |
remote: Compressing objects: 100% (2648/2648), done. |