mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
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'
|
VENV = '/srv/marks.example.com/venv/bin/activate_this.py'
|
||||||
|
|
||||||
PORT = 8086
|
PORT = 8086
|
||||||
|
|||||||
5
wsgi.py
5
wsgi.py
@@ -1,7 +1,8 @@
|
|||||||
# Activate virtualenv
|
# Activate virtualenv
|
||||||
import settings
|
import settings
|
||||||
activate_this = settings.VENV
|
activate_this = getattr(settings, 'VENV', None)
|
||||||
execfile(activate_this, dict(__file__=activate_this))
|
if activate_this:
|
||||||
|
execfile(activate_this, dict(__file__=activate_this))
|
||||||
|
|
||||||
from digimarks import app as application
|
from digimarks import app as application
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user