def staticfiles_urlpatterns(prefix=None):
 if (prefix is None):
  prefix = settings.STATIC_URL
 return static(prefix, view='django.contrib.staticfiles.views.serve')

def staticfiles_urlpatterns ( prefix = None ) : if ( prefix is None ) : prefix = settings . STATIC_URL return static ( prefix , view = 'django.contrib.staticfiles.views.serve' )
helper function to return a url pattern for serving static files .