Show More
@@ -2,23 +2,20 b'' | |||||
2 | import sys |
|
2 | import sys | |
3 | import os |
|
3 | import os | |
4 | import ConfigParser |
|
4 | import ConfigParser | |
|
5 | root = os.getcwd() | |||
5 |
|
6 | |||
6 |
PYLONS_CONFIG_NAME = ' |
|
7 | PYLONS_CONFIG_NAME = 'development.ini' | |
7 |
|
8 | |||
8 | root = os.getcwd() |
|
9 | sys.path.append(root) | |
9 | config = ConfigParser.ConfigParser({'here':root}) |
|
10 | config = ConfigParser.ConfigParser({'here':root}) | |
10 | config.read('%s/%s' % (root, PYLONS_CONFIG_NAME)) |
|
11 | config.read('%s/%s' % (root, PYLONS_CONFIG_NAME)) | |
11 | PYLONS_CONFIG = config |
|
12 | PYLONS_CONFIG = config | |
12 |
|
13 | |||
13 |
|
||||
14 | print config.items('app:main') |
|
|||
15 |
|
||||
16 | sys.path.append(os.getcwd()) |
|
|||
17 | CELERY_IMPORTS = ("pylons_app.lib.celerylib.tasks",) |
|
14 | CELERY_IMPORTS = ("pylons_app.lib.celerylib.tasks",) | |
18 |
|
15 | |||
19 | ## Result store settings. |
|
16 | ## Result store settings. | |
20 | CELERY_RESULT_BACKEND = "database" |
|
17 | CELERY_RESULT_BACKEND = "database" | |
21 | CELERY_RESULT_DBURI = "sqlite:///hg_app.db" |
|
18 | CELERY_RESULT_DBURI = dict(config.items('app:main'))['sqlalchemy.db1.url'] | |
22 |
|
19 | |||
23 | BROKER_CONNECTION_MAX_RETRIES = 30 |
|
20 | BROKER_CONNECTION_MAX_RETRIES = 30 | |
24 |
|
21 |
General Comments 0
You need to be logged in to leave comments.
Login now