I'm trying to install py4web using pip, following the instructions at
http://py4web.com/_documentation/static/index.html. (I've installed it
from github, which worked, but would prefer to just use pip.)
The install command (run on MacOS)...
$ python3 -m pip install --upgrade py4web
works
Running:
which py4web-start
on my ubuntu system gives me:
/home/jim/.local/bin/py4web-start
Jim
On Thursday, March 12, 2020 at 7:41:26 AM UTC-5, Tim Korb wrote:
>
> I'm trying to install py4web using pip, following the instructions at
> http://py4web.com/_documentation/static/index.html.
Ah, thanks. I should have looked for just py4web-start without the .py. I
was (too) blindly following the documentation, which appears to be
incorrect (it includes the .py).
On Thursday, March 12, 2020 at 8:49:19 AM UTC-4, Jim S wrote:
>
> Running:
>
> which py4web-start
>
> on my ubuntu
Tim,
You are right, it is not so clear.
However, the py4web Github home page states:
*Notice "py4web-start" uses the pip installed py4web, "./py4web-start.py"
uses the local one. Do not get confused. *
I guess the docs should include the info from the Github page.
On Thursday, 12 March 2020
This goes into your db.py and you also need to install okta_jwt via pip.
I still haven figured it out how to terminate the session in Okta and
Web2py at the same time
The redirect in the logout terminates the okta session but not the web2py
one.
For that you need session.forget and session.renew
web2py itself is designed to work on both versions of python.
Perhaps it goes without saying, any code that you write yourself must be
compatible with the python that you are targeting.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
Okta_CLIENT_ID='0x'
Okta_CLIENT_SECRET="x"
## import required modules
try:
import json
except ImportError:
from gluon.contrib import simplejson as json
from gluon.contrib.login_methods.oauth20_account import OAuthAccount
## extend the OAUthAccount class
class OktaAccount(OAuthAccount):
Hi,
How does one access the changes made in web2py to use Python 3.8? when I
fire it up it tells me its up-to-date with
2.18.5-stable+timestamp.2019.04.08.04.22.03
I presume that version doesn't have the changes ??
Thanks
On Friday, March 6, 2020 at 2:26:10 PM UTC-8, jim kaubisch wrote:
>
>
8 matches
Mail list logo