Skip to content

Commit 4a437ad

Browse files
committed
Support external staticfiles app
In addition to the built-in django.contrib.staticfiles app, also support the external version.
1 parent bc1ed50 commit 4a437ad

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)