File tree 3 files changed +3
-8
lines changed
3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 1
1
from typing import Any
2
2
3
- from django .utils .connection import ConnectionProxy
4
-
5
- from . import migrations as migrations
6
3
from .backends .base .base import BaseDatabaseWrapper
7
4
from .utils import DEFAULT_DB_ALIAS as DEFAULT_DB_ALIAS # Not exported in __all__
8
5
from .utils import DJANGO_VERSION_PICKLE_KEY as DJANGO_VERSION_PICKLE_KEY
9
- from .utils import ConnectionDoesNotExist as ConnectionDoesNotExist
10
6
from .utils import ConnectionHandler , ConnectionRouter
11
7
from .utils import DatabaseError as DatabaseError
12
8
from .utils import DataError as DataError
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ from collections.abc import Iterator, Mapping
2
2
from typing import Any , Protocol
3
3
4
4
from django .http .request import HttpRequest
5
- from django .template import TemplateDoesNotExist
6
- from django .template .base import Context
7
- from django .template .context import _ContextKeys
5
+ from django .template .context import Context , _ContextKeys
8
6
from django .utils .safestring import SafeString
9
7
10
8
class BaseEngine :
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ from logging import Logger
4
4
from re import Pattern
5
5
from typing import Any
6
6
7
- from django .template .context import Context , _ContextKeys
7
+ from django .template .context import Context as Context # noqa: F401 # Django: imported for backwards compatibility
8
+ from django .template .context import _ContextKeys
8
9
from django .template .engine import Engine
9
10
from django .template .library import Library
10
11
from django .template .loaders .base import Loader
You can’t perform that action at this time.
0 commit comments