Instead of:
from .model import Foo, Bar
I would like to:
import .model
This raises a syntax error. Is there a way to do it?
Anything following an import keyword must be a valid Python name as it will be added to your scope under that same name.
Instead, do the following.
from . import model
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With