[web2py] Installation on Linux without Desktop GUI

2017-11-30 Thread Lee P
I would like to install on a Linux Debian Lite distro (a version without Desktop GUI). But this does not work. The manual says: If you do not provide an administrator password, the administration interface is disabled. This is a security measure to prevent publicly exposing the admin interface.

Re: [web2py] Re: Is Web2py suitable for my project

2017-11-30 Thread Eric's Gmail
Matt, Sorry to say that the project never progressed so I can’t help you with web2py and Bokeh. Eric > On Nov 25, 2017, at 5:53 AM, 'Matthew J Watts' via web2py-users > wrote: > > Hi Eric > > Did you end up using web2py for this project? > > Like you i'm a Biologist trying to use Web2py by

[web2py] what is the right directory for the w2p file on pythonanywhere?

2017-11-30 Thread Feiya Sophia Luo
I have tried uploading the w2p file through rsync using rsync -avzhe ssh @ssh.pythonanywhere.com:, but after successfully uploading, i got the "invalid request" on my app webpage. I wonder if I got the right... I tried both the source code directory and the working directory... I can also ac

[web2py] Azure WebApp Deploy Approach

2017-11-30 Thread Daniel Luna
So, i was trying to deploy a web2py server on Azure using this approach: https://groups.google.com/forum/#!topic/web2py/XGxM_Tb9nJ4, but it seems to be not working now, anyone knows another approach, or what is missing to deploy on azure webapp? -- Resources: - http://web2py.com - http://web2

[web2py] mounting web2py at sub URL apache mod_wsgi

2017-11-30 Thread 'roland' via web2py-users
I cannot figure out how to install web2py to work on a sub URL. This matter has been discussed back in 2009, but unfortunately, without a definitive result. How can one proceed, are there any instructions available for apache2 with mod_wsgi? Thanks a lot! Roland -- Resources: - http://web2p

[web2py] Re: Error connecting to "Azure database for MySQL"

2017-11-30 Thread Daniel Luna
I Strill trying to connect, idk if my uri string is wrong, or if i did a mistake. Anyway, my string is like this-> mysql://user@db:password@server:3306/db And my DAL is like this -> DAL(myconf.get('db.uri'), pool_size=myconf.get('db.pool_size'), migrate_enabled=myconf.get('db.migrate'), check_re

Re: [web2py] Web2Py + VueJS SPA (Webpack)

2017-11-30 Thread Milton A
+1 It seems that using the cli is becoming standard these days but I still like the original simplicity of being able to write js without need for nodejs. On Sun, Nov 26, 2017 at 6:21 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > It seems that using the cli is becoming standard the

[web2py] Re: Possible bug using | at end of element of list:string

2017-11-30 Thread Anthony
Looks like a bug -- I submitted an issue: https://github.com/web2py/pydal/issues/504 Anthony On Wednesday, November 29, 2017 at 8:12:56 AM UTC-5, Scott Hunter wrote: > > Suppose I have a list:string field, and I put `A|B` in for one of the > elements. This works as expected, and gets represent

[web2py] Re: Cannot import module 'applications.welcome.modules.pytz

2017-11-30 Thread icodk
SOLVED ! use: sudo pip install pytz and not pip install pytz if you install pytz using pip without sudo , it will be installed for the login user and will be inaccessible from uwsgi/nginx Example: yourname@yourserver:~$pip install pytz will install it in /home/yourname/.local/lib/python2.7/s

[web2py] Re: "Invalid email" when requesting password reset

2017-11-30 Thread Ian W. Scott
I think you're right. It looks like the execution hangs up in Auth.request_reset_password at the point where the system is checking a setting for password case sensitivity: if not self.settings.email_case_sensitive: table_user.email.requires.insert(0, IS_LOWER()) I d

[web2py] "Invalid email" when requesting password reset

2017-11-30 Thread Leonel Câmara
Looks like a bug due to case sensitivity, either in web2py or in the dal -- 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

[web2py] Re: What is the diffrence between Web2py local host and Apache local host (wamp server)

2017-11-30 Thread Dave S
On Wednesday, November 29, 2017 at 10:46:13 PM UTC-8, Sandeep Patel wrote: > > > Hello Everyone, > > I hosted my web2py on AWS ec2 and Connected it with AWS RDS and ran > web2py server (0.0.0.0:8000) locally. This provided me a global access. > Now, I am curious as to what would have been the

[web2py] "Invalid email" when requesting password reset

2017-11-30 Thread Ian W. Scott
I have one user (and only one) whose email has suddenly started to be rejected by the auth login system. With the correct email address and password (I've double-checked) he gets "Invalid login." Then when he tries to use the password reset form he gets an "Invalid email" notice, as if the fiel

[web2py] Cannot import module 'applications.welcome.modules.pytz

2017-11-30 Thread icodk
What I did: added import pytz in db.py in the welcome application The error: (ImportError("Cannot import module 'applications.welcome.modules.pytz'",), ) Environment: 2.16.1-stable+timestamp.2017.11.14.05.54.25 (Running on nginx/1.12.1, Python 2.7.14) fresh web2py installation on Ubuntu 17

Re: [web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-30 Thread Áureo Dias Neto
Okay, I'll try this is tweaks .. What's the best way to test these things? thanks at all Leonel -- 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 recei

[web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-30 Thread Leonel Câmara
There's a ton of things you can do. Using cacheable=True in your selects if you don't need update_record/delete_record can speed things up. Restricting the fields you get from your records to the ones you're actually using can also help. Paying attention to recursive queries as you may be doing

Re: [web2py] request.args(0) vs request.args[0]

2017-11-30 Thread Yoel Benitez Fonseca
thnks a lot 2017-11-30 6:36 GMT-05:00 Anthony : > Note, request.args is an instance of the gluon.storage.List class. It has a > __call__ method, so in addition to acting like a standard Python list, it > can be called like a function. > > Anthony > > > On Wednesday, November 29, 2017 at 7:10:19 PM

Re: [web2py] request.args(0) vs request.args[0]

2017-11-30 Thread Anthony
Note, request.args is an instance of the gluon.storage.List class. It has a __call__ method, so in addition to acting like a standard Python list, it can be called like a function. Anthony O

[web2py] Re: How to position students based on their total averages

2017-11-30 Thread mostwanted
On Thursday, November 30, 2017 at 1:15:34 PM UTC+2, tim.n...@conted.ox.ac.uk wrote: > > I'm not sure I understand the link between student and student_class. > Does student.class_name reference class_name.id? > Yes it does > > Anyway, I think you need to be joining things up properly, and g

[web2py] Re: How to position students based on their total averages

2017-11-30 Thread tim . nyborg
I'm not sure I understand the link between student and student_class. Does student.class_name reference class_name.id? Anyway, I think you need to be joining things up properly, and grouping by student: def generate_report(): marks=db( (db.student_class.class_name=='5A') &

[web2py] Re: How to position students based on their total averages

2017-11-30 Thread tim . nyborg
I'm not sure I understand the link between student and student_class. Does student.class_name reference class_name.id? Anyway, I'd do something like this: def generate_report(): marks=db( (db.student_class.class_name=='5A') & (db.student.class_name == db.student_class.id)

[web2py] Re: How to position students based on their total averages

2017-11-30 Thread mostwanted
On Thursday, November 30, 2017 at 12:03:06 PM UTC+2, tim.n...@conted.ox.ac.uk wrote: > > I think you need to give a bit more context. What are your model > definitions for db.student_class and db.marks? Does each student have > multiple rows in the marks table? > *THESE ARE MY MODEL DEFIN

[web2py] Re: How to position students based on their total averages

2017-11-30 Thread tim . nyborg
I think you need to give a bit more context. What are your model definitions for db.student_class and db.marks? Does each student have multiple rows in the marks table? On Thursday, 30 November 2017 09:12:14 UTC, mostwanted wrote: > > I'm at the brink of pulling my hairs out!!! > Can please pl

[web2py] How to position students based on their total averages

2017-11-30 Thread mostwanted
I'm at the brink of pulling my hairs out!!! Can please please someone out there help me, in my results management system i want to add up the students averages and give the their class positions and level positions according to how their averages add up. Number 1 being the one with position 1 an