Update movie_lister example
This commit is contained in:
parent
c6e9dbd84c
commit
9116b57de3
|
@ -9,15 +9,15 @@ This mini application uses ``movies`` library, that is configured to work with
|
|||
csv file movies database.
|
||||
"""
|
||||
|
||||
from dependency_injector import catalogs
|
||||
from dependency_injector import providers
|
||||
from dependency_injector import injections
|
||||
|
||||
from movies import MoviesModule
|
||||
from movies import finders
|
||||
|
||||
from settings import MOVIES_CSV_PATH
|
||||
|
||||
from dependency_injector import catalogs
|
||||
from dependency_injector import providers
|
||||
from dependency_injector import injections
|
||||
|
||||
|
||||
@catalogs.override(MoviesModule)
|
||||
class MyMoviesModule(catalogs.DeclarativeCatalog):
|
||||
|
|
|
@ -11,15 +11,15 @@ sqlite movies database.
|
|||
|
||||
import sqlite3
|
||||
|
||||
from dependency_injector import catalogs
|
||||
from dependency_injector import providers
|
||||
from dependency_injector import injections
|
||||
|
||||
from movies import MoviesModule
|
||||
from movies import finders
|
||||
|
||||
from settings import MOVIES_DB_PATH
|
||||
|
||||
from dependency_injector import catalogs
|
||||
from dependency_injector import providers
|
||||
from dependency_injector import injections
|
||||
|
||||
|
||||
class ApplicationModule(catalogs.DeclarativeCatalog):
|
||||
"""Catalog of application component providers."""
|
||||
|
|
Loading…
Reference in New Issue