Hi,
Web2py (I think) at this time has no pip/PyPI packaging and no
Debian/Ubuntu packaging. All previous attempts are obsolete.
In Debian apt (Jessie testing) apt I see python-web2py version 2.12.3-1.
But we have 2.14.6 at web2py.com, Download.
I think you should switch to current version, using manual install
(Download, Normal users, Source code).
Unzip to the web2py/ folder and run from it: python web2py.py
In my Web2py (2.14.5) when I run: python web2py.py -a "password" -M -S
welcome
I will get:
In [1]: URL('default', 'home', scheme=True, host=True)
Out[1]: 'http://127.0.0.1:8000/codex2020/default/home'
In [2]: URL('default', 'home', scheme=True, host=False)
Out[2]: '/codex2020/default/home'
In [3]: URL('default', 'home', scheme=False, host=False)
Out[3]: '/codex2020/default/home'
In [4]: URL('default', 'home', scheme=False, host=True)
Out[4]: 'http://127.0.0.1:8000/codex2020/default/home'
So it looks like there is some issue with scheme= (has no efect), but not
the issue that you describe.
Dne pondělí 29. srpna 2016 2:41:17 UTC+2 Ryan Herbert napsal(a):
>
> Hi, I'm having an issue with generating url with the URL helper.
>
> URL('default', 'home', scheme=True, host=True) will generate "\
> https://127.0.0.1/myapp/default/home"
>
> I am using web2py from the python-web2py package from the ubuntu (or
> debian?) repos. Now I also have my app installed on a server running Ubuntu
> 14.04 and it works fine.
> Does anyone know where this can come from ? I've been assuming I
> configured my app incorrectly after upgrading to 16.04, but I can't seem to
> find any issues with my configuration.
>
> Any advice is much appreciated.
> Cheers,
>
> Ryan
>
--
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-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.