1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 22:05:09 +01:00

Make running in a virtualenv optional.

This commit is contained in:
Jelmer Vernooij
2016-11-28 23:34:28 +00:00
parent 698a417bac
commit 570af2d62e
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