Little fixes in examples and sessions
This commit is contained in:
parent
6bb7a1e863
commit
88404d88ad
2 changed files with 12 additions and 3 deletions
|
|
@ -1,7 +1,16 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from bottle import request
|
||||
from settings import config
|
||||
|
||||
try:
|
||||
|
||||
from settings import config
|
||||
|
||||
except:
|
||||
|
||||
class config:
|
||||
cookie_name='paramecio_session'
|
||||
|
||||
|
||||
def get_session():
|
||||
return request.environ.get(config.cookie_name)
|
||||
return request.environ.get(config.cookie_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue