Answer the question
In order to leave comments, you need to log in
How is it customary in Flask to build a directory hierarchy?
How is it customary to build a directory hierarchy in Python? For example, I have a MyProj project, in it I create:
run.py
app/
/view.py
/module1/bar.py
/module2/baz.py
If I need to access view.py from run.py and then to bar and baz then how to do it?
It's just that unexpectedly __init__.py comes out here , which, as I understand it, is an analogue of the package entry point, or I don’t know how to call it.
What's the point in writing like this:
from flask import Flask
app = Flask(__name__)
from app import views
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question