Re: [web2py] Re: Deploying on hosted server with cpanel

2017-05-28 Thread A.H.Gilbert
Hi Massimo,

I have now tried pythonanywhere and it worked fine for me using some fairly
trivial applications.

My motivation for possibly wanting to use a cpanel site is that I have for
some time run a static website for an orchestra I play in.   I am
developing an interactive committee-meeting-on-line  application in web2py
and wondered if I could somehow add it to the same website.

--
Best Wishes,
Howard

"If you don't read the newspaper, you're uninformed. If you read the
newspaper, you're mis-informed. - Mark Twain"


On Mon, May 22, 2017 at 4:09 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> While this can be done I do not get motivation for shared hosting (and
> cpanel) any more give that you can get a dedicated hosting at the same
> price these days.
>
> Have you looked into pythonanywhere.com, digitalocean, google app engine
> & cloud engine, AWS, etc?
>
> Massimo
>
>
> On Thursday, 18 May 2017 06:18:28 UTC-5, Arthur Gilbert wrote:
>>
>> I searched the forum for this and found nothing since 2010.
>>
>> Has anyone done it with success more recently.
>>
>> If so help would be appreciated.
>>
>> Thanks.
>>
> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/web2py/-eEbEhC-h5I/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Dal & RowsNewbie Question

2017-05-27 Thread A.H.Gilbert
Many thanks for reply.  Trying out your suggestion led me to realize my
problem was a foolish newbie mistake.

--
Best Wishes,
Howard

"If you don't read the newspaper, you're uninformed. If you read the
newspaper, you're mis-informed. - Mark Twain"


On Fri, May 26, 2017 at 1:29 PM, Mirek Zvolský  wrote:

> I have tested this and for me it returns the emails properly.
>
> Check if len(rows)==4
>
> If NO, you are connected to a different database or so,
>
> if YES, there is some setting to make/skip table sub-objects. So try both:
> row.email, row.auth_user.email
>
>
>
>
> Dne pátek 26. května 2017 13:08:39 UTC+2 Arthur Gilbert napsal(a):
>
>> The web2py book - Chapter 6 says:
>>
>> *DAL Rows*
>> is the object returned by a database select. It can be thought of as a
>> list of Row rows:
>>
>>
>> rows = db(db.mytable.myfield != None).select()
>>
>>
>> *Row* contains field values.
>>
>>
>> for row in rows:
>> print row.myfield
>>
>> Why does my code:
>>
>> rows = db(db.auth_user.email !=None).select()
>> for row in rows:
>> print row.email
>>
>> print None?
>>
>> There are 4 users with email addresses in the auth_user DB
>>
>> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/web2py/361Sh1j7Us4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: 403 Forbidden?

2017-05-06 Thread A.H.Gilbert
HI Erick,

Can't help BUT your post made me realise I had this problem after using
PythonAnywhere..

--
Best Wishes,
Howard

"If you don't read the newspaper, you're uninformed. If you read the
newspaper, you're mis-informed. - Mark Twain"


On Sat, May 6, 2017 at 8:33 AM, Dave S  wrote:

> On Friday, May 5, 2017 at 2:02:31 PM UTC-7, Erick R. wrote:
>>
>> Hello,
>>
>> I am having a similar problem with my admin page of my domain at
>> https://www.positivethoughtsdaily.com/admin. I initially accessed my
>> admin console and failed too many password attempts. Then I began seeing a
>> "Forbidden 403" page instead of the admin password entry page. I typically
>> access my admin page via the web2py interface through port 80. Here is what
>> I have tried so far:
>>
>>1. I contacted PythonAnywhere, my hosting service, and they provided
>>me with code to reset my admin password
>>. I did
>>this.
>>2. I removed and reinstalled web2py and updated to the latest version
>>as Howard did, but the "403 Forbidden" page is still there.
>>3. It has now been two days since I was initially locked out, so it
>>appears that waiting is not working either.
>>
>> Any suggestions to try next? Apologies if I am missing something simple
>> here.
>>
>> Thanks,
>> Erick
>>
>>
>
> Look for hosts.deny in the admin app  applications/admin/private/
> hosts.deny
>
> /dps
>
>
>> On Friday, April 21, 2017 at 11:08:07 AM UTC-5, Arthur Gilbert wrote:
>>>
>>> Thanks for reply Massimo and especial thanks for making all this
>>> available; I like it much better than Rails.
>>>
>>> I don't think failed logins was the problem.  I have now cured it by
>>> removing and re-installing web2py (after saving all the copies of my
>>> working though your lectures).
>>>
>>> --
>>> Best Wishes,
>>> Howard
>>>
>>> "If you don't read the newspaper, you're uninformed. If you read the
>>> newspaper, you're mis-informed. - Mark Twain"
>>>
>>>
>>> On Fri, Apr 21, 2017 at 4:39 PM, Massimo Di Pierro <
>>> massimo@gmail.com> wrote:
>>>
 You normally get that is you fail too many logins. It resets itself
 after 15 minutes.


 On Friday, 21 April 2017 10:12:52 UTC-5, Arthur Gilbert wrote:
>
>
> Just started web2py.  Going thro' Massimo di Pierro's 5 lectures on
> you tube.  Making good progress, excited about the system and everything
> working well.  BUT, when I went back to it, today, I clicked on Admin (of
> the welcome page) I got a long delay and then "403 FORBIDDEN". The page is
> showing "http://127.0.0.1:8000/admin/default/index; as it should. I
> am not aware of changing anything on my system, I am using xubuntu and
> Firefox. Web2py version 2.14.6-stable+timestamp.2016.05.10.00.21.47.
>
> Please help,
> Thanks.
>
 --
 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 a topic in the
 Google Groups "web2py-users" group.
 To unsubscribe from this topic, visit https://groups.google.com/d/to
 pic/web2py/9T4E2MS8kfY/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+un...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/web2py/9T4E2MS8kfY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: 403 Forbidden?

2017-04-21 Thread A.H.Gilbert
Thanks for reply Massimo and especial thanks for making all this available;
I like it much better than Rails.

I don't think failed logins was the problem.  I have now cured it by
removing and re-installing web2py (after saving all the copies of my
working though your lectures).

--
Best Wishes,
Howard

"If you don't read the newspaper, you're uninformed. If you read the
newspaper, you're mis-informed. - Mark Twain"


On Fri, Apr 21, 2017 at 4:39 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> You normally get that is you fail too many logins. It resets itself after
> 15 minutes.
>
>
> On Friday, 21 April 2017 10:12:52 UTC-5, Arthur Gilbert wrote:
>>
>>
>> Just started web2py.  Going thro' Massimo di Pierro's 5 lectures on you
>> tube.  Making good progress, excited about the system and everything
>> working well.  BUT, when I went back to it, today, I clicked on Admin (of
>> the welcome page) I got a long delay and then "403 FORBIDDEN". The page is
>> showing "http://127.0.0.1:8000/admin/default/index; as it should. I am
>> not aware of changing anything on my system, I am using xubuntu and
>> Firefox. Web2py version 2.14.6-stable+timestamp.2016.05.10.00.21.47.
>>
>> Please help,
>> Thanks.
>>
> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/web2py/9T4E2MS8kfY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.