HugoPu opened a new issue #3930: Feel Puzzled at Structure 
URL: https://github.com/apache/incubator-superset/issues/3930
 
 
   ### Superset version
   0.20.5 
   
   ### Python version
   2.7.5
   
   ### Question
   Actually, this is not a bug, but it make me confuced.
   The connectors, models and views are placed on different packages, I think 
you want to load them separately. but when Superset is run, 
`ConnectorRegistry.register_sources(module_datasource_map)` in 
`Superset.__init__` will call `Superset.connectors.base.views`, then 
`Superset.connectors.base.views` will call `from superset.views.base import 
SupersetModelView`. All `Superset.views` will be loaded at that time, since 
`Superset.views.__init__` call 
   ```
   from . import base  # noqa  
   from . import core  # noqa  
   from . import sql_lab  # noqa  
   from . import annotations # noqa  
   ```
   Acutally,`from superset import views` in `Superset.__init__` is no used.
   
   Never mind if you think what I wrote is normal.
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to