forked from elmau/empresa-libre
Fix - Issue #147
This commit is contained in:
commit
e728d948d0
|
@ -13,7 +13,6 @@ class AppEmpresas(object):
|
||||||
@falcon.after(get_template)
|
@falcon.after(get_template)
|
||||||
def on_get(self, req, resp):
|
def on_get(self, req, resp):
|
||||||
values = req.params
|
values = req.params
|
||||||
# ~ print ('V', values)
|
|
||||||
resp.status = falcon.HTTP_200
|
resp.status = falcon.HTTP_200
|
||||||
|
|
||||||
def on_post(self, req, resp):
|
def on_post(self, req, resp):
|
||||||
|
|
|
@ -20,7 +20,7 @@ from controllers.main import (AppEmpresas,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
from settings import DEBUG, PATH_SESSIONS
|
from settings import DEBUG, MV, PATH_SESSIONS
|
||||||
|
|
||||||
|
|
||||||
db = StorageEngine()
|
db = StorageEngine()
|
||||||
|
@ -65,7 +65,7 @@ session_options = {
|
||||||
'session.data_dir': PATH_SESSIONS['data'],
|
'session.data_dir': PATH_SESSIONS['data'],
|
||||||
'session.lock_dir': PATH_SESSIONS['lock'],
|
'session.lock_dir': PATH_SESSIONS['lock'],
|
||||||
}
|
}
|
||||||
if DEBUG:
|
if DEBUG or MV:
|
||||||
session_options['session.secure'] = False
|
session_options['session.secure'] = False
|
||||||
|
|
||||||
app = SessionMiddleware(api, session_options)
|
app = SessionMiddleware(api, session_options)
|
||||||
|
|
Loading…
Reference in New Issue