Skip to content

Commit

Permalink
django-staticfiles for Django 1.2 compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Jan 31, 2012
1 parent 497d6df commit b2fcfff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions djangorestframework/runtests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@
'djangorestframework',
)

import django

if django.VERSION < (1, 3):
INSTALLED_APPS += ('staticfiles',)


# OAuth support is optional, so we only test oauth if it's installed.
try:
import oauth_provider
Expand Down
9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ commands=
basepython=python2.5
deps=
django==1.2.4
django-staticfiles>=1.1.2
coverage==3.4
URLObject>=0.6.0
django-staticfiles>=1.1.2
unittest-xml-reporting==1.2
Pyyaml==3.10
# Optional packages:
Expand All @@ -44,9 +44,9 @@ deps=
basepython=python2.6
deps=
django==1.2.4
django-staticfiles>=1.1.2
coverage==3.4
URLObject>=0.6.0
django-staticfiles>=1.1.2
unittest-xml-reporting==1.2
Pyyaml==3.10
# Optional packages:
Expand All @@ -56,9 +56,9 @@ deps=
basepython=python2.7
deps=
django==1.2.4
django-staticfiles>=1.1.2
coverage==3.4
URLObject>=0.6.0
django-staticfiles>=1.1.2
unittest-xml-reporting==1.2
Pyyaml==3.10
# Optional packages:
Expand Down Expand Up @@ -138,6 +138,7 @@ commands=
python examples/runtests.py
deps=
django==1.2.4
django-staticfiles>=1.1.2
coverage==3.4
URLObject>=0.6.0
wsgiref==0.1.2
Expand All @@ -153,6 +154,7 @@ commands=
python examples/runtests.py
deps=
django==1.2.4
django-staticfiles>=1.1.2
coverage==3.4
URLObject>=0.6.0
wsgiref==0.1.2
Expand All @@ -168,6 +170,7 @@ commands=
python examples/runtests.py
deps=
django==1.2.4
django-staticfiles>=1.1.2
coverage==3.4
URLObject>=0.6.0
wsgiref==0.1.2
Expand Down

0 comments on commit b2fcfff

Please sign in to comment.