[web2py] Re: How to reject request based on location

2020-10-26 Thread valq...@gmail.com
It is better to do this at front server like nginx, Apache or even at os-level. In web2py, models files are processed for each request, so you can just raise HTTP at db.py вторник, 27 октября 2020 г. в 04:52:57 UTC+3, Vlad: > I've discovered that my site is constantly bothered by weird

Re: [web2py] On Windows I am trying to delete an application that uses logging but the delete fails because the log file is "in use"

2020-10-26 Thread AGRogers
Ah, i see. Can you temporarily shutdown() the logger and then restart it when the uninstall is complete? Or does it need to stay running also? I think it is possible to close a specific handler as well - but i dont know how the logging works in web2py - maybe there is a single handler for all the

[web2py] How to reject request based on location

2020-10-26 Thread Vlad
I've discovered that my site is constantly bothered by weird locations - not that there is anything intrinsically wrong with those countries, but those locations have nothing to do with actual customers. I want to reject the requests from those locations altogether. I can reject any

Re: [web2py] Migrate a PostgreSQL Webfaction DB to Opalstack

2020-10-26 Thread António Ramos
i had the same path. Images you should , i think, just download from webfaction and upload to opalstack to uploads folder. I used dbeaver to export from webfaction . and then psql to insert in opalstack. I had the same problem but i used migrate=False. Check docs. Not much but hope it helps. Ramos

[web2py] Migrate a PostgreSQL Webfaction DB to Opalstack

2020-10-26 Thread Gaël Princivalle
Hi. I'm still trying to migrate my Web2py applications from Webfaction to Opalstack. Well here what I do: 1 I export the DB form Webfaction in the dump.sql file What are the best options? For one website only the Data's in the Copy mode has worked well. For another one I've loose some records.

[web2py] Re: Opalstack for ex-webfaction users or people looking for a Web2Py Web Hosting (Tutorial for Python 3 or 2.7)

2020-10-26 Thread Gaël Princivalle
Thank you Carlos that works perfectly. Il giorno lunedì 26 ottobre 2020 alle 02:55:05 UTC+1 carlos@gmail.com ha scritto: > Try this: > > cd ~/apps/yourapp > source env/bin/activate > cd web2py/ > python -c "from gluon.main import save_password; > save_password(raw_input('admin password:

Re: [web2py] On Windows I am trying to delete an application that uses logging but the delete fails because the log file is "in use"

2020-10-26 Thread Davidiam
Thank you for your reply, Deleting the application folder gives the same error. The problem is that the logger holds the log file locked. If I restart the webserver I can delete the file, but our developers can't restart web services. It is not a big problem but I would like to find a

[web2py] Re: Opalstack for ex-webfaction users or people looking for a Web2Py Web Hosting (Tutorial for Python 3 or 2.7)

2020-10-26 Thread Jose C
On Monday, 26 October 2020 01:55:05 UTC, Carlos A wrote: > > Try this: > > cd ~/apps/yourapp > source env/bin/activate > cd web2py/ > python -c "from gluon.main import save_password; > save_password(raw_input('admin password: '), )" > > Note: You can find your assigned port with the command