Commit 154fe14f authored by Georgios D. Tsoukalas's avatar Georgios D. Tsoukalas Committed by Christos Stavrakakis
Browse files

cyclades: init dispatcher with DJANGO_SETINGS_MODULE

parent ff9efcbc
......@@ -36,15 +36,15 @@ and implements the message wait and dispatch loops. Actual messages are
handled in the dispatched functions.
"""
from django.core.management import setup_environ
# Fix path to import synnefo settings
import sys
import os
path = os.path.normpath(os.path.join(os.getcwd(), '..'))
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'synnefo.settings'
from django.conf import settings
setup_environ(settings)
from django.db import close_connection
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment