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
#!/usr/bin/env python | |
""" | |
Obviously this is only useful if you have to deal with Django's | |
Trac a lot. | |
Mostly stolen from Jacob Kaplan-Moss, but improved by Jannis Leidel | |
and Aymeric Augustin. | |
Reads a config file at ~/.djpatchrc, e.g.: |
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 copy | |
class gloss(dict): | |
""" | |
A dictionary like object that supports attribute access, too. | |
>>> import pickle | |
>>> s = gloss(a=123) | |
>>> c = s.copy() |
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
#!/bin/sh | |
curl -s -L https://github.com/downloads/jezdez/textmate-missingdrawer/MissingDrawer-0.4.0.tmplugin.tgz | tar -xzf - && open MissingDrawer.tmplugin |
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
diff --git a/tests/runtests.py b/tests/runtests.py | |
index f373309..6d4f282 100755 | |
--- a/tests/runtests.py | |
+++ b/tests/runtests.py | |
@@ -1,5 +1,9 @@ | |
#!/usr/bin/env python | |
-import os, subprocess, sys | |
+import os | |
+import shutil | |
+import subprocess |
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
diff --git a/tests/runtests.py b/tests/runtests.py | |
index f373309..2c7c76f 100755 | |
--- a/tests/runtests.py | |
+++ b/tests/runtests.py | |
@@ -1,5 +1,8 @@ | |
#!/usr/bin/env python | |
-import os, subprocess, sys | |
+import os | |
+import subprocess | |
+import sys |
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 custom_show_toolbar(request): | |
return True # Always show toolbar, for example purposes only. | |
INSTALLED_APPS = ( | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.sites', |
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
diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt | |
index 14f1900..9d19acc 100644 | |
--- a/docs/topics/http/sessions.txt | |
+++ b/docs/topics/http/sessions.txt | |
@@ -95,8 +95,8 @@ defaults to output from ``tempfile.gettempdir()``, most likely ``/tmp``) to | |
control where Django stores session files. Be sure to check that your Web | |
server has permissions to read and write to this location. | |
-Using cookies-based sessions | |
----------------------------- |
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
#!/bin/bash | |
# get lunchy: gem install lunchy | |
lunchy stop postgres | |
# Run this script to enable the Ramdisk for Postgres | |
VolumeName="postgres-memory" | |
# Size in MB, make sure is not too low or not too high | |
SizeInMB=2048 |
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
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py | |
index 91ecbf2..18e62ef 100644 | |
--- a/django/db/models/fields/__init__.py | |
+++ b/django/db/models/fields/__init__.py | |
@@ -928,6 +928,11 @@ class IPAddressField(Field): | |
kwargs['max_length'] = 15 | |
Field.__init__(self, *args, **kwargs) | |
+ def get_db_prep_value(self, value, connection, prepared=False): | |
+ if not prepared: |
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
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py | |
index 94a9b65..91ecbf2 100644 | |
--- a/django/db/models/fields/__init__.py | |
+++ b/django/db/models/fields/__init__.py | |
@@ -910,6 +910,7 @@ class BigIntegerField(IntegerField): | |
empty_strings_allowed = False | |
description = _("Big (8 byte) integer") | |
MAX_BIGINT = 9223372036854775807 | |
+ | |
def get_internal_type(self): |