Hi,
I know this is going to be a bit vague but I have a web2py folder in my
home : /home/user/web2py which I can reach in my browser at 127.0.0.1:8080
and that I now try to access through public_html.
Then I copied all files into public_html, made apache and file system
modifications (selinux,
@DenesL Thanks for your help with my brain failure ! I didn't think to try
to start without apache.. It did work, after a few tweaks (empty all
db+errors folders) and adding request.is_local=True to the admin/access.py
I even had my tickets back !
@Anthony Thanks too ! I could verify your say i
@DenesL Thanks for your help with my brain failure ! I didn't think to try
to start without apache.. It did work, after a few tweaks (empty all
db+errors folders) and adding request.is_local=True to the admin/access.py
I even had my tickets back !
@Anthony Thanks too ! I could verify your say
Nonw apache logs show this :
[Tue May 10 14:35:29.351466 2016] [wsgi:error] [pid 12826]return
self.driver.connect(**driver_args)
[Tue May 10 14:35:29.351470 2016] [wsgi:error] [pid 12826] File
"/home/user/public_html/machina/gluon/contrib/pg8000/__init__.py", line
336, in connect
[Tue May 10
@Anthony It did not solve the issue but the error message with psycopg2 if
far more useful.. It is not the apache server it can't connect with but the
postgresql server : it asks in the logs if it is running ? I guess it comes
from my 2 interfaces settings : web2py runs on 192.168.0.10 and postg
Hi,
I would like to be sure of something : I want to update the database
through a crud.update() form but when I do so, I have some "value already
exists in database" errors. And I couldnt find a way to say to web2py to
update only if changed or absent.. Which I thought the update form was
doi
Le mercredi 30 mars 2016 21:52:02 UTC+2, Laer Cius a écrit :
>
> Hi,
>
> I would like to be sure of something : I want to update the database
> through a crud.update() form but when I do so, I have some "value already
> exists in database" errors. And I couldnt find a way to say to web2py to
>
Ok thanks !
As a matter of fact I have indeed an unique option set for the problematic
values. But I understood it as to prevent 2 same values for 2 different
users : as for an email for example. But here I try to update the profile
of the same user so obviously he should keep the same email o
Well according to the blog that was the proper way to set the form with
default from the database but I maybe understood it wrong.
I ended up here cos I didn't find how to set up the default with a lambda
function. And so far, I always get a "lamba accpets 1 argument error
Anyway despite I comme
Hi,
I didn't see any reference to it in the documentation but I read now code
which declare Field using the db.Field form :
db.Field(name, 'string')
Is there a (useful) difference with the simple Field declaration form :
Field(name, 'string')
?
Thank you
--
Resources:
- http://web2py
Here for example :
https://joecodeswell.wordpress.com/2011/05/25/web2py-dal-quick-reference/
or in the pyforum2 code that you can find here :
http://www.web2py.com/appliances
I try to learn modifying it..
Thanks for your answer !
--
Resources:
- http://web2py.com
- http://web2py.com/book (Do
Hi,
I try to insert some demo data in my db using this :
for fav_record in range(1, 1): object_type = choice(range(1, 5))
if object_type == 1: object_id = choice(range(1, 504))
elif object_type == 2: object_id = choice(range(1, 7))
elif object_type == 3: object_id = c
Hi,
I've seen only a little on this in web2py, like a discussion dated from
2008.. Is there a way to do such thing with DAL nowadays ?
Thank you
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com
Thanks for your anwer. It actually works.. I don't really get why.
But anyway, I think the right way to achieve this is the showid=False
sqlform option.
I read the whole db doc but forget to check exhaustively the form docs.
Thanks again. ;)
--
Resources:
- http://web2py.com
- http://web2py.com
14 matches
Mail list logo