Thanks for your reply, Richard.
in the database, there is an id field. I removed all the extra properties
of the grid and doing now simply
grid = SQLFORM.grid(db.inoutexp)
Even that is not working. Error is grid not defined.
After a bit more investigation, I found the problem is related to us
tried the script :
setup-web2py-nginx-uwsgi-centos64.sh
but return an error
502 Bad Gateway
--
nginx/1.0.15
*/var/log/nginx/error.log*
[crit] 4342#0: *3 connect() to unix:///var/www/web2py/logs/web2py.socket
failed (13: Permission denied) while connecting to upstream
forget it, related with selinux, although i've already set it disabled. it
must execute (setenforce 0) or reboot the server.
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/
thanks Martin, already tried your suggestion, but still got the same result
:
*controllers/testtelegram.py*
import requests
def sendtelegram():
TOKEN = "TOKEN"
chat_id = "CHAT_ID"
text = "test"
url = "https://api.telegram.org/bot%s/%%s"; % TOKEN
data = dict(chat_id = chat
I want to reference a project with a list of auth.users and get
'sqlite3.IntegrityError'> FOREIGN KEY constraint failed:
(self=, table=, fields=[(,
'Beratung'), (, ['4', '6'])])
db.define_table('project',
Field('name'),
Field('project_member','list:reference auth
Hi Stifan!
Please check:
(1) Is the chat_id YOUR telegram id? I don't know this error message, but
maybe you have used the chat_id of the BOT?
(2) You have to send at first one message from YOUR telegram account to the
bot - the bot is not allowed to send a message without beeing once
contacted
Please provide the exact and all model, controller code related to the
issue. Without that it hard to say.
Richard
On Fri, Aug 12, 2016 at 3:06 AM, Vic Ding wrote:
> Thanks for your reply, Richard.
> in the database, there is an id field. I removed all the extra properties
> of the grid and doi
thank you so much martin for the hint, yes you are right that is the
chat_id for bot, i must change it into user chat_id by visit the link below
https://telegram.me/get_id_bot
or
https://web.telegram.org/#/im?p=@get_id_bot
the code works well, the problem is just the chat_id (use chat_id user not
use --profiler_dir and then use runsnakerun to inspect.
On Thursday, August 11, 2016 at 4:57:38 PM UTC+2, Ron Chatterjee wrote:
>
> I use MATLAB a lot and they have something call profile.
> http://www.mathworks.com/help/matlab/ref/profile.html
>
> That allows to profile an application based on e
On Friday, August 12, 2016 at 11:11:47 AM UTC-4, Niphlod wrote:
>
> use --profiler_dir and then use runsnakerun to inspect.
>
More specifically, the command line options -F profiler_dir or --profiler
profiler_dir. See
http://web2py.com/books/default/chapter/29/04/the-core#Command-line-options.
Thank you Niphlod, Anthony. This helps.
-Ron
On Friday, August 12, 2016 at 11:58:01 AM UTC-4, Anthony wrote:
>
> On Friday, August 12, 2016 at 11:11:47 AM UTC-4, Niphlod wrote:
>>
>> use --profiler_dir and then use runsnakerun to inspect.
>>
>
> More specifically, the command line options -F pro
HTMLGOODIES has a brief article summarizing some of the new Cloud-based web
app development environments. Note that Appery.io supports some frameworks
(cient side?) like PhoneGap and jQuery Mobile.
http://www.htmlgoodies.com/html5/mobile/building-mobile-web-apps-in-the-cloud.html>
The same col
Yeah, you were right, now it works! :)
My final code is like this:
the model remains the same.
controller:
def redTrafico():
red_trafico = SQLFORM.grid(db.red_trafico)
return locals()
def canal():
canal = SQLFORM.grid(db.canal)
return locals()
def onChangeRedTrafico():
opt
There is one important issue -- the line setting the case sensitivity on
auth.settings must occur BEFORE the tables are generated. If the line
occurs after the auth table is generated it has no effect. At lease this
was the case when I first ran afoul of it a year ago.
-- Joe
On Tuesday, Ju
14 matches
Mail list logo