Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit c1995ac

Browse files
django.setup() to fix dropped log and version bump to indicate use in production
1 parent 3afc68d commit c1995ac

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

hendrix/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.17'
1+
__version__ = '1.0.0'

hendrix/deploy/base.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ def __init__(self, action='start', options={}, reactor=reactor):
5757
if self.use_settings:
5858
django = importlib.import_module('django')
5959
if django.VERSION[:2] >= (1, 7):
60-
installed_apps = getattr(settings, "INSTALLED_APPS")
61-
apps = import_string('django.apps.apps')
62-
apps.populate(installed_apps)
60+
django.setup()
6361
wsgi_dot_path = getattr(settings, 'WSGI_APPLICATION', None)
6462
self.application = HendrixDeploy.importWSGI(wsgi_dot_path)
6563

0 commit comments

Comments
 (0)