Revision 4051c82a snf-pithos-backend/pithos/backends/lib/sqlalchemy/alembic/env.py
b/snf-pithos-backend/pithos/backends/lib/sqlalchemy/alembic/env.py | ||
---|---|---|
2 | 2 |
from alembic import context |
3 | 3 |
from sqlalchemy import engine_from_config, pool |
4 | 4 |
from logging.config import fileConfig |
5 |
from synnefo.settings import PITHOS_BACKEND_DB_CONNECTION |
|
5 |
|
|
6 |
try: |
|
7 |
# pithos-app case |
|
8 |
from synnefo.settings import PITHOS_BACKEND_DB_CONNECTION |
|
9 |
except ImportError: |
|
10 |
try: |
|
11 |
# plankton case |
|
12 |
from synnefo.settings import BACKEND_DB_CONNECTION as \ |
|
13 |
PITHOS_BACKEND_DB_CONNECTION |
|
14 |
except ImportError: |
|
15 |
PITHOS_BACKEND_DB_CONNECTION = None |
|
6 | 16 |
|
7 | 17 |
# this is the Alembic Config object, which provides |
8 | 18 |
# access to the values within the .ini file in use. |
Also available in: Unified diff