Adds Django 1.7 compat patch (Closes: #755628).

This commit is contained in:
Thomas Goirand
2014-09-08 18:12:29 +00:00
parent 11e0d25930
commit 3d1e4782f8
3 changed files with 26 additions and 0 deletions

6
debian/changelog vendored
View File

@@ -1,3 +1,9 @@
python-django-pyscss (1.0.1-3) unstable; urgency=medium
* Adds Django 1.7 compat patch (Closes: #755628).
-- Thomas Goirand <zigo@debian.org> Mon, 08 Sep 2014 18:12:00 +0000
python-django-pyscss (1.0.1-2) unstable; urgency=medium
* Added missing build-depends: python-pil, libjs-jquery and python-django,

View File

@@ -0,0 +1,19 @@
Description: Add Django 1.7 compat.
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/755628
Forwarded: no
Last-Update: 2014-09-09
--- python-django-pyscss-1.0.1.orig/testproject/runtests.py
+++ python-django-pyscss-1.0.1/testproject/runtests.py
@@ -3,6 +3,10 @@ import os
import sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproject.testproject.settings")
+import django
+if hasattr(django, 'setup'):
+ django.setup()
+
from django.test.utils import get_runner
from django.conf import settings

1
debian/patches/series vendored Normal file
View File

@@ -0,0 +1 @@
add-django-1.7-compat.patch