>
> > I added the line in routes.py - While it restricts allowing
> access to other applications like welcome it does not restrict
> redirection - so in my case it still redirected to welcome application
> mentioning something is wrong message.
>
> Odd. I have a similar setup to you
Hi!
I put lte-2.4.15 to py4web and lte works with controllers.py :
from py4web import action, request, abort, redirect, URL
from yatl.helpers import A
from . common import db, session, T, cache, auth
@action('index')
@action.uses('index.html', )
#@action.uses(Template('index.html', delimiters
I added field 'language' im my auth_user table in database. My file db.py
contain:
auth = Auth(db, host_names=configuration.get('host.names'))
*auth*
*.settings.extra_fields['auth_user']= [Field('language')]*
auth.define_tables(username=False, signature=False)
How can I get value of language for
Hi Jose,
Have you removed welcome application from web2py applications folder
or it still resides there but when accessed gives 404? I am using python
2.7.13 . I will try your settings for routes and get back to you.
In the meantime you may access the sites here that I referred to -
1. www.ta
Yes, I discovered a few days ago that private folder can be accessed using
the vps ip, so I have been playing with host names in appconfig.ini and
with apache2 configuration and the only way to stop accessing private
folder was adding a new virtualhost in apache for each vps ip with this:
>
> >
> Have you removed welcome application from web2py applications folder
> or it still resides there but when accessed gives 404? I am using python
> 2.7.13 . I will try your settings for routes and get back to you.
>
Normally I always delete the app, but for testing this issue I left
>
> I use Lets encrypt certificates and redirecting from 80 to 443, and I
> don't touch virtualhost file in port 80 so for sure, i'm doing something
> wrong with apache3 and for sure with host names in appconfig.ini
>
> [host]
>> names = localhost:*, 127.0.0.1:*, *:*, *
>>
>>
That is worrying.
Hi Jose,
I did the changes as per your suggestion. Now when I specify a
default application it takes me to the same application when I access any
domain.
Secondly -
If I specify my domain name without a www. prefix (example: artpic.in) I
am navigated to welcome however the app is not show as
On Thursday, August 1, 2019 at 1:37:37 AM UTC-7, Jose C wrote:
>
> I use Lets encrypt certificates and redirecting from 80 to 443, and I
>> don't touch virtualhost file in port 80 so for sure, i'm doing something
>> wrong with apache3 and for sure with host names in appconfig.ini
>>
>> [host]
>
Thank you,
Now it's working as spected.
appconfig.ini
[host]
> names = subdomain:*
>
I removed the virtualhost regarding the dedicated ips and set DocumentRoot
in port 80 for my subdomain to /dev/null
Not sure if it's the right way but it's working now without expliciting
having a virtualhos
Thank you very much for the info. In the mean time we have decided to use
shibboleth because we had a lot of issues with the python modules on Windows
and because the project added the requirement for sso. I will keep your
solution as a reference for the future.
--
Resources:
- http://web2py
We are working on a Shibboleth implementation now. So far it is working better
than the other tests we did on Windows.
We wanted to test it using a localhost Shibboleth sp and idp but it wasn't
clear to us how we needed to configure it.
Thanks for the tip!
--
Resources:
- http://web2py.com
-
Yes.. Even I got the same error with EStore application. Invoice table is
referenced in the model, but no such table is defined in the model.
Could anybody please help to fix this issue. I need to explore and understand
the EStore application developed by Massimo.
Thank you very much in advan
Try
from py4web.core import Template
On Thursday, 1 August 2019 00:48:02 UTC-7, Alex Beskopilny wrote:
>
> Hi!
> I put lte-2.4.15 to py4web and lte works with controllers.py :
>
> from py4web import action, request, abort, redirect, URL
> from yatl.helpers import A
> from . common import db,
Thanks Massimo!
it works: deliniters="X0X0X0 Y1Y1Y1"
and delimiters="[Z[ ]]"
py4web was tested with urls lte-2.14.15
and ThreadPoolExecutor(max_workers=10)
results:
execution time: 98.3 sec, data_size= 3794965000, urls= 56000
bytes/sec= 38596744.13, req/sec= 569.54
четверг, 1 августа
Try db.auth_user(auth.user_id).language
--
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
It's query to database I thought that I can get it from session like
auth.user. Thank you for answer!
чт, 1 авг. 2019 г., 21:21 Val K :
> Try db.auth_user(auth.user_id).language
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2p
Strange...
1) First of all, can you confirm this is a routes.py file in the web2py
root directory and that there are not any routes.py (app-specific routers)
files present in the app directories as well (that could be overriding the
main routes.py)?
2) The config I posted is my live config (ot
Should be stored in the session too, did you try to logout/login?
--
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 ar
I did'n try to login/logout. I do it and all work!
--
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
Hi
ajax('{{=URL('default', 'showfilters')}}' + '?result1=' + result1 +
'&result2='+result2, [], ':eval');
result1 = request.vars.result1
result2 = request.vars.result2
or
ajax('{{=URL('default', 'showfilters')}}/' + result1 + '/' + result2, [],
':eval');
result1 = request.args(0)
result2 =
21 matches
Mail list logo