mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 19:45:12 +01:00
Needed for importing settings.py
This commit is contained in:
0
__init__.py
Normal file
0
__init__.py
Normal file
7
wsgi.py
7
wsgi.py
@@ -1,8 +1,11 @@
|
||||
# Activate virtualenv
|
||||
import settings
|
||||
#activate_this = getattr(settings, 'VENV', None)
|
||||
#if activate_this:
|
||||
# execfile(activate_this, dict(__file__=activate_this))
|
||||
activate_this = getattr(settings, 'VENV', None)
|
||||
if activate_this:
|
||||
execfile(activate_this, dict(__file__=activate_this))
|
||||
with open(activate_this) as file_:
|
||||
exec(file_.read(), dict(__file__=activate_this))
|
||||
|
||||
from digimarks import app as application
|
||||
|
||||
|
||||
Reference in New Issue
Block a user