Skip to content

Commit

Permalink
update esp.wsgi for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
milescalabresi committed Oct 6, 2024
1 parent 3e5b6fe commit 01b301a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion esp.wsgi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ sys.path.insert(0, os.path.join(BASEDIR, 'esp'))
# If the variable isn't defined, then activate our own virtualenv.
if os.environ.get('VIRTUAL_ENV') is None:
activate_this = os.path.join(ENVDIR, 'bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
with open(activate_this, 'rb') as source_file:
code = compile(source_file.read(), activate_this, 'exec')
exec(code, dict(__file__=activate_this))

import django.core.wsgi
django_application = django.core.wsgi.get_wsgi_application()
Expand Down

0 comments on commit 01b301a

Please sign in to comment.