1
0
mirror of https://codeberg.org/diginaut/digimarks.git synced 2026-05-06 15:44:10 +02:00

Needed for importing settings.py

This commit is contained in:
2017-12-17 13:44:41 +01:00
parent 48e77f551d
commit 4170a7818b
2 changed files with 5 additions and 2 deletions
View File
+5 -2
View File
@@ -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