-
-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App has no attribute config #438
Comments
You can access it via "connexion.App().app" |
Thank you, so the command is: |
So how do you access the |
@randyesq I did this successfully from a controller file, found under from flask import current_app
def read(limit=1):
return current_app.config['FOO_BAR'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I want to save a string in the app object like in flask
Expected behaviour
I expect to save it like
app.config['UPLOAD_FOLDER'] = 'some/path/name_of_folder'
Actual behaviour
AttributeError: 'FlaskApp' object has no attribute 'config'
Steps to reproduce
app = connexion.App(name)
app.add_api('swagger.yaml')
app.config['UPLOAD_FOLDER'] = 'some/path/name_of_folder'
Additional info:
Output of the commands:
Python 3.4.2
connexion -> Version: 1.1.9
The text was updated successfully, but these errors were encountered: