[web2py] Why URL(..., scheme=True, ...) is implemented differently than request.is_https?

2019-07-16 Thread Paco Bernal
You can always redirect apache from http to https -- 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

[web2py] Re: web2py scripts (homemade task queues) and python2 compatibility

2019-07-16 Thread Tom Clerckx
That's clear, thanks for the update. On Tuesday, July 16, 2019 at 6:48:41 PM UTC+2, Leonel Câmara wrote: > > You're right, you must use the print function because web2py now has a " > from __future__ import print_function" which forces you to use the print > function even in python2 > --

[web2py] Re: web2py scripts (homemade task queues) and python2 compatibility

2019-07-16 Thread Leonel Câmara
You're right, you must use the print function because web2py now has a "from __future__ import print_function" which forces you to use the print function even in python2 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: How to solve the Nginx error on digitalocean

2019-07-16 Thread Jim S
No, I'd just remove all of that completely. This is my production nginx.conf file. Also note the last 2 lines... user www-data; worker_processes auto; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush

Re: [web2py] Re: How to solve the Nginx error on digitalocean

2019-07-16 Thread Maurice Waka
removed, tried, restarted everything but errors still remains. Modified it as you had suggested but the latest error: nginx: [emerg] unknown directive "web2py" in /etc/nginx/nginx.conf:87 On Tue, Jul 16, 2019 at 4:28 PM Jim Steil wrote: > I would remove that and retry it. > > On Tue, Jul 16,

Re: [web2py] Re: please help testing web3py

2019-07-16 Thread Johann Spies
On Sun, 14 Jul 2019 at 05:48, Massimo Di Pierro wrote: > > I posted some preliminary documentation > https://github.com/web2py/web3py/tree/master/apps/_documentation > > > I do not see a Makefile to convert the .mm-files to html-documentation. How do I read the documentation? Johann -- Because

Re: [web2py] Re: How to solve the Nginx error on digitalocean

2019-07-16 Thread Jim Steil
I would remove that and retry it. On Tue, Jul 16, 2019 at 8:16 AM Maurice Waka wrote: > Nope. Web2py example > > On Tue, 16 Jul 2019, 14:38 Jim Steil wrote: > >> Did you take that server directive out of the nginx.conf file? >> >> Jim >> >> >> On Tue, Jul 16, 2019, 3:01 AM Maurice Waka wrote:

Re: [web2py] Re: How to solve the Nginx error on digitalocean

2019-07-16 Thread Maurice Waka
Nope. Web2py example On Tue, 16 Jul 2019, 14:38 Jim Steil wrote: > Did you take that server directive out of the nginx.conf file? > > Jim > > > On Tue, Jul 16, 2019, 3:01 AM Maurice Waka wrote: > >> Used the link as you directed >> >> posted this: >> # file /etc/nginx/sites-available/web2py >>

Re: [web2py] Re: How to solve the Nginx error on digitalocean

2019-07-16 Thread Jim Steil
Did you take that server directive out of the nginx.conf file? Jim On Tue, Jul 16, 2019, 3:01 AM Maurice Waka wrote: > Used the link as you directed > > posted this: > # file /etc/nginx/sites-available/web2py > server { > listen 80; > server_name 165.22.57.107; >

[web2py] Why URL(..., scheme=True, ...) is implemented differently than request.is_https?

2019-07-16 Thread Ray (a.k.a. Iceberg)
Hi there, I tend to use URL(..., scheme=True, ...) in my apps to generate an absolute URL, as documented here . However, one of my app which has been deployed behind Apache wsgi with https, I noticed that the generated

Re: [web2py] Re: How to solve the Nginx error on digitalocean

2019-07-16 Thread Maurice Waka
Used the link as you directed posted this: # file /etc/nginx/sites-available/web2py server { listen 80; server_name 165.22.57.107; #to enable correct use of response.static_version #location ~* /(\w+)/static(?:/_[\d]+.[\d]+.[\d]+)?/(.*)$ { #

[web2py] routing with uuid

2019-07-16 Thread Murat KAŞIKÇIOĞLU
Hi, I want to create a individual web page for members and send a link with uuid like: https://domain.com/app/262976c7-5c9a-46c4-a775-bbad186e Link will be unique and every member can view their data. Is it possible with "route" (or any other way)? Best. Murat -- Resources: -