1 parent bc1ed50 commit 4a437adCopy full SHA for 4a437ad
1 file changed
devserver/management/commands/runserver.py
@@ -47,7 +47,7 @@ class Command(BaseCommand):
47
make_option('--wsgi-app', dest='wsgi_app', default=None,
48
help='Load the specified WSGI app as the server endpoint.'),
49
)
50
- if 'django.contrib.staticfiles' in settings.INSTALLED_APPS:
+ if any(map(lambda app: app in settings.INSTALLED_APPS, ('django.contrib.staticfiles', 'staticfiles', ))):
51
option_list += make_option('--nostatic', dest='use_static_files', default=True,
52
help='Tells Django to NOT automatically serve static files at STATIC_URL.'),
53
0 commit comments