Skip to content

Commit 8822445

Browse files
committed
Fixes Django 1.10 issues
1 parent 8cc2d4d commit 8822445

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ multi_line_output = 5
3232
line_length = 79
3333
combine_as_imports = true
3434
skip = wsgi.py,docs,tests/test_models.py
35+
known_first_party = stdimage,tests
36+
known_third_party = django

tests/settings.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525

2626
DEFAULT_FILE_STORAGE = 'tests.storage.MyFileSystemStorage'
2727

28+
TEMPLATES = [
29+
{
30+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
31+
'APP_DIRS': True,
32+
}
33+
]
34+
2835
MIDDLEWARE_CLASSES = (
2936
'django.contrib.sessions.middleware.SessionMiddleware',
3037
'django.contrib.auth.middleware.AuthenticationMiddleware',

tests/urls.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
try:
2-
from django.conf.urls.defaults import patterns, url, include
3-
except ImportError:
4-
from django.conf.urls import patterns, url, include
5-
1+
from django.conf.urls import include, url
62
from django.contrib import admin
73

84
admin.autodiscover()
95

10-
urlpatterns = patterns(
11-
'',
6+
urlpatterns = [
127
url(r'^admin/', include(admin.site.urls)),
13-
)
8+
]

0 commit comments

Comments
 (0)