##// END OF EJS Templates
moved out celerypylons import to enviromnet to prevent celery from displaying celeryconfig.py warning
marcink -
r1006:02246101 beta
parent child Browse files
Show More
@@ -1,17 +1,22 b''
1 """Pylons environment configuration"""
1 """Pylons environment configuration"""
2
3 import os
4 import logging
5
2 from mako.lookup import TemplateLookup
6 from mako.lookup import TemplateLookup
3 from pylons.configuration import PylonsConfig
7 from pylons.configuration import PylonsConfig
4 from pylons.error import handle_mako_error
8 from pylons.error import handle_mako_error
9
10 import rhodecode.lib.app_globals as app_globals
11 import rhodecode.lib.helpers
12
5 from rhodecode.config.routing import make_map
13 from rhodecode.config.routing import make_map
14 from rhodecode.lib import celerypylons
6 from rhodecode.lib.auth import set_available_permissions, set_base_path
15 from rhodecode.lib.auth import set_available_permissions, set_base_path
7 from rhodecode.lib.utils import repo2db_mapper, make_ui, set_rhodecode_config
16 from rhodecode.lib.utils import repo2db_mapper, make_ui, set_rhodecode_config
8 from rhodecode.model import init_model
17 from rhodecode.model import init_model
9 from rhodecode.model.scm import ScmModel
18 from rhodecode.model.scm import ScmModel
10 from sqlalchemy import engine_from_config
19 from sqlalchemy import engine_from_config
11 import logging
12 import os
13 import rhodecode.lib.app_globals as app_globals
14 import rhodecode.lib.helpers
15
20
16 log = logging.getLogger(__name__)
21 log = logging.getLogger(__name__)
17
22
@@ -40,7 +40,6 b' from rhodecode.lib.pidlock import Daemon'
40
40
41 from celery.messaging import establish_connection
41 from celery.messaging import establish_connection
42 from pylons import config
42 from pylons import config
43 from rhodecode.lib import celerypylons
44
43
45 log = logging.getLogger(__name__)
44 log = logging.getLogger(__name__)
46
45
General Comments 0
You need to be logged in to leave comments. Login now