Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.

Commit

Permalink
Ensure good app registry for buildbot and wsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
Pike committed Jul 7, 2016
1 parent 7e9ed2c commit e58e584
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions bb2mbdb/status.py
Expand Up @@ -49,6 +49,9 @@ def setupBridge(master, settings, config):
if settings is not None:
os.environ['DJANGO_SETTINGS_MODULE'] = settings

import django
django.setup()

import bb2mbdb.utils
reload(bb2mbdb.utils)
import mbdb.models
Expand Down
5 changes: 2 additions & 3 deletions wsgi/elmo.wsgi
Expand Up @@ -29,7 +29,6 @@ sys.path[:0] = new_sys_path
# manage prepends /apps, /vendor and /vendor-local to sys.path on its own
import manage


import django.core.handlers.wsgi
os.environ['DJANGO_SETTINGS_MODULE'] = 'elmo.settings'
application = django.core.handlers.wsgi.WSGIHandler()
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

0 comments on commit e58e584

Please sign in to comment.