Skip to content

Commit 5d8abcf

Browse files
committed
Merge pull request #60 from streeter/patch-2
Support external staticfiles app
2 parents bc1ed50 + 4a437ad commit 5d8abcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devserver/management/commands/runserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Command(BaseCommand):
4747
make_option('--wsgi-app', dest='wsgi_app', default=None,
4848
help='Load the specified WSGI app as the server endpoint.'),
4949
)
50-
if 'django.contrib.staticfiles' in settings.INSTALLED_APPS:
50+
if any(map(lambda app: app in settings.INSTALLED_APPS, ('django.contrib.staticfiles', 'staticfiles', ))):
5151
option_list += make_option('--nostatic', dest='use_static_files', default=True,
5252
help='Tells Django to NOT automatically serve static files at STATIC_URL.'),
5353

0 commit comments

Comments
 (0)