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
docs: sqlalchemy pattern document has an invalid import #1978
Comments
@sc68cal I don't think that there is anything wrong with that import in principle. But of course it might be nice for the application structure to be stated more explicitly. |
Where is there a function named |
Of course you can. Just not without `from`.
|
@sc68cal What do you think? If things make sense now, you should maybe go ahead and close the issue. |
I don't see anything wrong with this import. |
That's a post of me trying to follow the documentation, albiet with a module named There is no
And I guess it would be The issue is the docs are quite ambiguous. |
You can import anything (variable, functions, etc.) from a module... |
I can't reproduce your issue. I created a This is not an issue with Flask or its docs, it appears to be an issue with your understanding of Python imports. The Flask issue tracker is not the place to resolve that. If you have a question about your own code, please post on Stack Overflow after creating a minimal, complete, and verifiable example. |
The issue was there was a error in an import further down the stack. Basically PEBCAK, sorry for the waste of time |
The declarative section includes the following example:
db_session
is a variable, and a paragraph below, it tries to import it. Which isn't really possible.This documentation is misleading
The text was updated successfully, but these errors were encountered: