Re: [web2py] Simple routing question

2015-04-07 Thread Jim Steil
That was it, I forgot about the wsgi file update. That was the part I was missing as well that the pythonanywhere folks helped with. And yes, they were pleasant to work with and had the answers. On Tue, Apr 7, 2015 at 11:45 AM, Alex Glaros wrote: > it is working. Pythonanywhere.com folks were

Re: [web2py] Simple routing question

2015-04-07 Thread Ron Chatterjee
May be we can add a tag to this as "how to deploy in python anywhere". On Tuesday, April 7, 2015 at 12:45:57 PM UTC-4, Alex Glaros wrote: > > it is working. Pythonanywhere.com folks were really helpful. > > There was so much trial and error I don't which of the below processes was > responsible

Re: [web2py] Simple routing question

2015-04-07 Thread Alex Glaros
it is working. Pythonanywhere.com folks were really helpful. There was so much trial and error I don't which of the below processes was responsible for success and what might be inefficient. Put routes.py under web2py main directory: / > home > alexglaros > web2py > routes.pyNOT UNDER YOUR

Re: [web2py] Simple routing question

2015-04-06 Thread Ron Chatterjee
When you guys resolve this, can you please share? On Monday, April 6, 2015 at 11:34:53 AM UTC-4, Jim S wrote: > > Alex - your setup looks pretty much just like mine. I'd contact support > at pythonanywhere. They were really helpful when I was going through this. > > -Jim > > On Sat, Apr 4, 2015

Re: [web2py] Simple routing question

2015-04-06 Thread Jim Steil
Alex - your setup looks pretty much just like mine. I'd contact support at pythonanywhere. They were really helpful when I was going through this. -Jim On Sat, Apr 4, 2015 at 6:10 PM, Alex Glaros wrote: > need help with configuring pythonanywhere.com site and hostmonster.com. > > domain name

Re: [web2py] Simple routing question

2013-02-12 Thread Jim Steil
Great news, I believe it is finally working. For my domain, I have the root domain pointing (forwarding?) to www.domainname.com I have a cname entry for www.domainname.com that points to username.pythonanywhere.com for routes.py I have this setup. BASE=dict( default_application='welcom

Re: [web2py] Simple routing question

2013-02-12 Thread Jim Steil
I 'think' I've just got my DNS setup they way you described. Waiting for it to propogate Will check back in a few hours. -Jim On Tue, Feb 12, 2013 at 1:48 PM, Giles Thomas wrote: > Your DNS providers aren't completely in the wrong. The problem as I > understand it is that the DNS standard

Re: [web2py] Simple routing question

2013-02-12 Thread Giles Thomas
On 12 February 2013 19:42, Massimo Di Pierro wrote: > I am facing a similar problem. I use vps.com for DNS server and I do not > see a way to redirect the top domain. > > BTW. I am also using pythonanywhere (planning to move web2py there) and I > noticed I had to visit: > >https://.pythonanywh

Re: [web2py] Simple routing question

2013-02-12 Thread Giles Thomas
Your DNS providers aren't completely in the wrong. The problem as I understand it is that the DNS standard itself doesn't support CNAMEs for "naked" domains, like foo.com, if you have any other data associated with them -- like mail records. See < http://superuser.com/questions/264913/cant-set-ex

Re: [web2py] Simple routing question

2013-02-12 Thread Massimo Di Pierro
I am facing a similar problem. I use vps.com for DNS server and I do not see a way to redirect the top domain. BTW. I am also using pythonanywhere (planning to move web2py there) and I noticed I had to visit: https://.pythonanywhere.com/admin/default/reload_routes to reload the routes. Clic

Re: [web2py] Simple routing question

2013-02-12 Thread Jim Steil
Yes, I don't believe it is a pythonanywhere problem. I'm using mydomain for DNS hosting. They are now telling me that I cannot setup a cname for my root domain if I'm using their mailservers and have the mx records point to them. That sounds like a bunch of crap to me, but that is what their sup

Re: [web2py] Simple routing question

2013-02-12 Thread Giles Thomas
Hi there, PythonAnywhere developer here. I assume that the request environment where Jim S was seeing the incorrect http_host is the underlying WSGI environment -- is that correct? If so, that's a weird result. We definitely don't do anything strange and hacky with those headers; I just ran

Re: [web2py] Simple routing question

2013-02-12 Thread Jim S
Yes, might be a show-stopper for me and others trying to use pythonanywhere. I was thinking there were others on the list using pythonanywhere successfully with web2py. My problem is I know little about DNS and routing. My DNS is hosted by mydomain.com. There is also a good chance that I've

Re: [web2py] Simple routing question

2013-02-12 Thread Jonathan Lundell
On 12 Feb 2013, at 7:48 AM, Jim S wrote: > Looking at request.env I'm seeing the following: > > http_host = myaccountname.pythonanywhere.com > http_referer = http://www.myappurl.com > > I'm routing in my routes.py based on www.myappurl.com but it never goes > there. It is always going to myacc

Re: [web2py] Simple routing question

2013-02-12 Thread Jim S
Looking at request.env I'm seeing the following: http_host = myaccountname.pythonanywhere.com http_referer = http://www.myappurl.com I'm routing in my routes.py based on www.myappurl.com but it never goes there. It is always going to myaccountname.pythonanywhere.com. -Jim On Tuesday, February

Re: [web2py] Simple routing question

2013-02-12 Thread Jim S
So you mean to just look at it through a regular view, not in the routes.py. Got it. Wasn't thinking straight. -Jim On Monday, February 11, 2013 11:13:23 PM UTC-6, Jonathan Lundell wrote: > > On 11 Feb 2013, at 7:48 PM, Jim Steil > > wrote: > > Sorry for being slow at this, route configuratio

Re: [web2py] Simple routing question

2013-02-11 Thread Jonathan Lundell
On 11 Feb 2013, at 7:48 PM, Jim Steil wrote: > Sorry for being slow at this, route configuration is certainly not a forte of > mine. Is there something special I need to do to turn on logging? How would > I examine request.env? I'm running all of this from pythonanywhere and don't > really k

Re: [web2py] Simple routing question

2013-02-11 Thread Jim S
...and yes, restarted. On Monday, February 11, 2013 9:48:59 PM UTC-6, Jim S wrote: > > Sorry for being slow at this, route configuration is certainly not a forte > of mine. Is there something special I need to do to turn on logging? How > would I examine request.env? I'm running all of this f

Re: [web2py] Simple routing question

2013-02-11 Thread Jim Steil
Sorry for being slow at this, route configuration is certainly not a forte of mine. Is there something special I need to do to turn on logging? How would I examine request.env? I'm running all of this from pythonanywhere and don't really know where to find these things. -Jim On Mon, Feb 11, 20

Re: [web2py] Simple routing question

2013-02-11 Thread Jonathan Lundell
On 11 Feb 2013, at 7:01 PM, Jim S wrote: > Jonathan > > I am currently using that as my base for getting this working. Here is what > I have so far: > > routers = dict( > # base router > BASE=dict(domains = {"www.website1.com":"mustangs", > "www.website2.com":"icysa

Re: [web2py] Simple routing question

2013-02-11 Thread Jim S
Jonathan I am currently using that as my base for getting this working. Here is what I have so far: routers = dict( # base router BASE=dict(domains = {"www.website1.com":"mustangs", "www.website2.com":"icysa", })) But, anytime I to either URL, I get the web2py welco

Re: [web2py] Simple routing question

2013-02-11 Thread Jonathan Lundell
On 11 Feb 2013, at 3:36 PM, Jim S wrote: > I'm trying to route traffic that comes in on a specific URL to a specifc app. > > Example: > > www.host1.com should route to the welcome app > > www.host2.com should route to mySpecific app > > I realize this is probably trivial, but I'm really strugg

[web2py] Simple routing question

2013-02-11 Thread Jim S
I'm trying to route traffic that comes in on a specific URL to a specifc app. Example: www.host1.com should route to the welcome app www.host2.com should route to mySpecific app I realize this is probably trivial, but I'm really struggling with it. Hoping to do it with routes.py and not thro