Could you please copy the whole error message?
Which python version do you use (2 or 3) ?

But in general, yes, I recommend to upgrade to the latest version for 
several reasons.

The module 'six' is a compatibility layer between API of python2 and 
python3 anyway.
I cannot see now why it should be in your apps module dir...

Regards,
FeZ

2019. július 12., péntek 15:37:08 UTC+2 időpontban Gaël Princivalle a 
következőt írta:
>
> Thank you Zoltán.
>
> I'm still trying this solution however when I create the 0_memcache.py 
> model file I've got this ticket:
>
> <type 'exceptions.ImportError'> Cannot import module 
> 'applications.my_app.modules.six'
>
> Could it be due to the fact that the web2py version is the old 2.14.6?
>
> Il giorno venerdì 12 luglio 2019 10:46:44 UTC+2, Fekete Zoltán ha scritto:
>>
>> Hi Gael,
>>
>> It is possible to store sessions in the db, however consider that it will 
>> slow down the system if you have such a high load.
>>
>> A faster solution is to store sessions in memory:
>>
>> http://web2py.com/books/default/chapter/29/13?search=cache#Sessions-in-memcache
>>
>> Read that part of the doc, there are quite a few type of session handling 
>> recipes.
>>
>> Regards,
>>
>> FeZ
>>
>> 2019. július 12., péntek 10:00:03 UTC+2 időpontban Gaël Princivalle a 
>> következőt írta:
>>>
>>> Hi all.
>>>
>>> In my sessions folder all sessions are stored in separated sub-folders, 
>>> 068,069...
>>> The file system don't accept more than 512 sub-folders in a folder.
>>> When I reach 512 sub-folders the website is down.
>>> Now for avoiding this problem I delete all the sessions with a crontab 
>>> job every 12 hours, but it's not enough.
>>>
>>> Obviously I can imagine that deleting all the sessions means also 
>>> disconnecting all the users, that's not a good thing.
>>>
>>> Can I store the sessions in the DB instead of the file system?
>>>
>>> And what about that? I don't understand where I must add it, and it 
>>> seems that the sessions storage for my website works already like that,
>>> http://web2py.com/books/default/chapter/29/04/the-core#Separate-sessions
>>>
>>> Thanks.
>>>
>>>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/277c0f3f-c231-40c0-bb2d-1d94332ebf45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to