I got it myself!
I should disable admin interface at all on a production server! And make
another local web2py just in case:
http://web2py.com/books/default/chapter/29/13/deployment-recipes?search=administrative+interface#Securing-sessions-and-admin
On Sunday, January 8, 2017 at 9:37:03 AM UTC+
Thanks for the link Richard,
I just copied everything and tried it but I am getting this error:
OperationalError: no such table: usage_statistics
I think I am missing a step.
Can you please advise.
Thanks.
Cheers,
Joe
On Friday, January 6, 2017 at 11:12:36 PM UTC+8, Richard wrote:
>
> Y
On Saturday, January 7, 2017 at 9:45:15 PM UTC, 黄祥 wrote:
>
> pls try :
> ### Change user with email if username is disabled
> ### Check patterns in
> http://127.0.0.1:8000/application/controller/api/patterns.json
>
> ## curl
> # GET
> curl -X GET --user user:password -i
> http://127.0.0.1:8000
hello i´m using toastr as a replacement form the web2py flash html.
For toastr i need the message and the type of message ,info error success.
My question is if is it safe and possible to set
response.flash=dict(type="error",mesg="test message")
regards
Antonio
--
Resources:
- http://web2py.
I attempted to simplify creation of the response.menu list of tuples by the
following function:
def menu_item(menu_item_text, url, sub_menu=None, ignore=False):
# First element of tuple is the text of the meny item.
retval = list(menu_item_text)
# Second element of the tuple indicat
Try it and see. ;-)
--
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-use
Hi,
This may be a dumb question, but I have saved/installed apps on my web2py
account, but when I login from another computer, my apps are no longer
there ( only when I login from my home computer (which they were created
on). Is there any way to pull them up outside of my home computer? If I
I have a Web2Py webapp which is a web interface for a blastn script. Now I
need to limit the process running simultaneously, my thought is,
When the webapp starts, the way I did is, in default.py:
available_worker = multiprocessing.cpu_count() - 1
def get_workers():
global avai
Thanks for the link Richard,
This is great! I deployed it and it works perfectly.
BTW: what is the best way to include a unique session id for each visit in
the 'usage_statistics' table?
On Friday, January 6, 2017 at 11:12:36 PM UTC+8, Richard wrote:
>
> You can look on the side of piwik : https
I have a table already defined in my app and it's connected to mysql on
Pythonanywhere.
I wanted to define an other table in the same app but I am unable to
connect this new table to db.
In my db.py file I have this:
*if not request.env.web2py_runtime_gae:*
*## if NOT running on Google App
On Sunday, January 8, 2017 at 12:04:07 PM UTC-8, Terrence Brannon wrote:
>
> I attempted to simplify creation of the response.menu list of tuples by
> the following function:
>
>
> def menu_item(menu_item_text, url, sub_menu=None, ignore=False):
> # First element of tuple is the text of the
On Sunday, January 8, 2017 at 4:50:45 PM UTC-8, new2py wrote:
>
> Hi,
>
> This may be a dumb question, but I have saved/installed apps on my web2py
> account, but when I login from another computer, my apps are no longer
> there ( only when I login from my home computer (which they were create
12 matches
Mail list logo