File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,10 @@ def read(fname):
19
19
tests_require = [
20
20
'Pillow' ,
21
21
'django-compressor>=1.3' ,
22
+ 'django-discover-runner' ,
22
23
]
23
24
25
+
24
26
version = (0 , 0 , 1 , 'final' )
25
27
26
28
Original file line number Diff line number Diff line change 13
13
BASE_DIR = os .path .dirname (os .path .dirname (__file__ ))
14
14
15
15
16
+ from django import VERSION as DJANGO_VERSION
17
+ if DJANGO_VERSION [:2 ] < (1 , 6 ):
18
+ TEST_RUNNER = 'discover_runner.DiscoverRunner'
19
+
20
+
16
21
# Quick-start development settings - unsuitable for production
17
22
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
18
23
43
48
'testproject.testapp2' ,
44
49
)
45
50
51
+ if DJANGO_VERSION [:2 ] < (1 , 6 ):
52
+ INSTALLED_APPS += ('discover_runner' , )
53
+
46
54
MIDDLEWARE_CLASSES = (
47
55
'django.contrib.sessions.middleware.SessionMiddleware' ,
48
56
'django.middleware.common.CommonMiddleware' ,
108
116
'version' : 1 ,
109
117
'disable_existing_loggers' : True ,
110
118
'handlers' : {
111
- 'console' :{
119
+ 'console' : {
112
120
'level' : 'DEBUG' ,
113
121
'class' : 'logging.StreamHandler' ,
114
122
},
You can’t perform that action at this time.
0 commit comments