from flaskext.uploads import UploadSet, configure_uploads
app = Flask(__name__)
app.config['UPLOADED_CSVFILES_DEST'] = '/var/uploads'
csvfiles = UploadSet('csvfiles', ('csv',))
RuntimeError: cannot access configuration outside request