Skip to content

Commit e563b6e

Browse files
committed
Remove the check for activate_this from wsgi.py since modern venv doesn't provide that script. Change the logging to always log when starting a wsgi instance.
- Legacy-Id: 18908
1 parent d13d878 commit e563b6e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ietf/wsgi.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,13 @@
5151

5252
syslog.openlog(str("datatracker"), syslog.LOG_PID, syslog.LOG_USER)
5353

54-
# Virtualenv support
55-
virtualenv_activation = os.path.join(path, "env", "bin", "activate_this.py")
56-
if os.path.exists(virtualenv_activation):
57-
syslog.syslog("Starting datatracker wsgi with virtualenv %s" % os.path.dirname(os.path.dirname(virtualenv_activation)))
58-
exec(compile(io.open(virtualenv_activation, "rb").read(), virtualenv_activation, 'exec'), dict(__file__=virtualenv_activation))
59-
6054
if not path in sys.path:
6155
sys.path.insert(0, path)
6256

6357
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ietf.settings")
6458

59+
syslog.syslog("Starting datatracker wsgi instance")
60+
6561
from django.core.wsgi import get_wsgi_application
6662
application = get_wsgi_application()
6763

0 commit comments

Comments
 (0)