mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Merge pull request #3 from jelmer/optional-venv
Make running in a virtualenv optional.
This commit is contained in:
@@ -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
|
||||
|
||||
5
wsgi.py
5
wsgi.py
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user