1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-07 00:15:10 +01:00

Merge pull request #3 from jelmer/optional-venv

Make running in a virtualenv optional.
This commit is contained in:
Michiel Scholten
2016-12-29 20:49:16 +01:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
# Virtualenv to use with the wsgi file # Virtualenv to use with the wsgi file (optional)
VENV = '/srv/marks.example.com/venv/bin/activate_this.py' VENV = '/srv/marks.example.com/venv/bin/activate_this.py'
PORT = 8086 PORT = 8086

View File

@@ -1,6 +1,7 @@
# Activate virtualenv # Activate virtualenv
import settings import settings
activate_this = settings.VENV activate_this = getattr(settings, 'VENV', None)
if activate_this:
execfile(activate_this, dict(__file__=activate_this)) execfile(activate_this, dict(__file__=activate_this))
from digimarks import app as application from digimarks import app as application