1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 20:55: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'
PORT = 8086

View File

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