diff options
author | Antoine Catton <acatton@fusionbox.com> | 2014-10-17 09:33:29 -0600 |
---|---|---|
committer | Antoine Catton <acatton@fusionbox.com> | 2014-10-17 09:33:29 -0600 |
commit | a98212891846cc0438aee3b0b695d33ad7589ab8 (patch) | |
tree | b0a055b1d2119d18e02ea2ae7a53e147ec025f6e | |
parent | 2c5dd9da41fcefa3a16c536c122d0fc7a08f23bc (diff) | |
parent | fc83133312ef976dd24905136967102351b814ea (diff) | |
download | django-pyscss-a98212891846cc0438aee3b0b695d33ad7589ab8.tar.gz |
Merge branch 'master' of https://github.com/mrunge/django-pyscss
-rw-r--r-- | django_pyscss/utils.py | 3 | ||||
-rw-r--r-- | testproject/runtests.py | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/django_pyscss/utils.py b/django_pyscss/utils.py index 8ff5ad9..d668280 100644 --- a/django_pyscss/utils.py +++ b/django_pyscss/utils.py @@ -13,6 +13,7 @@ def find_all_files(glob): """ for finder in finders.get_finders(): for path, storage in finder.list([]): - if fnmatch.fnmatchcase(os.path.join(storage.prefix or '', path), + if fnmatch.fnmatchcase(os.path.join(getattr(storage, 'prefix', '') + or '', path), glob): yield path, storage diff --git a/testproject/runtests.py b/testproject/runtests.py index 394f24a..09930f0 100644 --- a/testproject/runtests.py +++ b/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 |