OLD | NEW |
(Empty) | |
| 1 import os, sys |
| 2 sys.path.append('/home/www-data/graphite/lib') |
| 3 sys.path.append('/home/www-data/graphite/webapp') |
| 4 os.environ['DJANGO_SETTINGS_MODULE'] = 'graphite.settings' |
| 5 |
| 6 import django.core.handlers.wsgi |
| 7 |
| 8 application = django.core.handlers.wsgi.WSGIHandler() |
| 9 |
| 10 # READ THIS |
| 11 # Initializing the search index can be very expensive, please include |
| 12 # the WSGIImportScript directive pointing to this script in your vhost |
| 13 # config to ensure the index is preloaded before any requests are handed |
| 14 # to the process. |
| 15 from graphite.logger import log |
| 16 log.info("graphite.wsgi - pid %d - reloading search index" % os.getpid()) |
| 17 import graphite.metrics.search |
| 18 |
OLD | NEW |