I'm sorry we didn't quite get there in time to help you out! A few answers, for future reference, in case anyone else has similar problems:
I think Brian had the right answer to why you were having problems with bitbucket/mercurial, it will create a folder for you unless you give it a specific one to put your files in. That's nothing to do with PythonAnywhere, just standard behaviour of mercurial. The same thing will happen if you run "hg clone" on your own PC. anyway, it looks like you managed to figure out a way of getting it working -- making the change to project_home in the wsgi file. That's absolutely fine. re: databases, I'm not sure what your problem was, but one thing you should check: If you want to use MySQL, you need to set up a password via the MySQL tab, and then tell web2py about it. Bruno Rocha has some good instructions here: http://rochacbruno.com.br/web2py-on-pythonanywhere/ Sqlite should "just work" We're happy to help if you want to have another go at it, even just out of curiosity. rgds, Harry + the PythonAnywhere team. (supp...@pythonanywhere.com) On Sunday, April 21, 2013 4:24:21 AM UTC+1, jjg0 wrote: > > gae worked! It just took several hours for the changes to take. Still > can't get pythonanywhere to work, had a lot of trouble getting the database > to work with web2py but I no longer care! I never want to launch a site > again. (I'm kidding, sort of) > > On Saturday, April 20, 2013 7:43:07 PM UTC-4, jjg0 wrote: >> >> Using the destination option './' in pythonanywhere gives me an error >> saying the directory is not empty. If I use the destination option in any >> folder, for example if i just create a test folder and try >> >> hg clone https://m...@bitbucket.org/me/myproject ./test >> >> I will see a test folder with the mybitbucketproject created inside of it >> like so: >> >> ./test/mybitbucketproject >> >> Whats strange is that this only happens in pythonanywhere, trying this on >> my home pc I never see a 'mybitbucketproject' folder created whether I use >> a destination option or not. Same exact command, different results. >> >> It looks like I can just accept the fact that pythonanywhere will always >> create this extra folder, go into pythonanywhere_com_wsgi.py and edit >> the project_home line to always include the expected extra folder. for >> example, change: >> >> project_home = u'/home/mypythonanywherefolder/web2py/'. >> >> to: >> >> project_home = >> u'/home/mypythonanywherefolder/mybitbucketproject/web2py/'. >> >> I'm not sure if a hack like this is safe in the long run. I still don't >> even know how difficult pythonanywhere is to get a custom domain working to >> replace the http://myproject.pythonanywhere.com/ domain. I have to >> upgrade my account and start paying before I can try changing domains. My >> confidence in pythonanywhere is pretty low at the moment. Paying them >> money doesn't seem like a very good idea, but I really need to get this >> site up and I've hit a wall with the google app engine route as well. I've >> asked similar questions on the gae board but haven't gotten anything back, >> so I may have to throw this hack in and see if I can get pythonaywhere >> working. I really don't care where the site ends up, I just want it up and >> working. Surely there has got to be an easier way? Deploying a website is >> painful. >> >> >> On Saturday, April 20, 2013 6:28:16 PM UTC-4, Brian M wrote: >>> >>> Check the docs for Mercurial<http://www.selenic.com/mercurial/hg.1.html>, >>> it explains why you keep getting that "extra" directory. (The BitBucket >>> 101 <https://confluence.atlassian.com/display/BITBUCKET/bitbucket+101>docs >>> might also be good to review) >>> >>>> clone >>>> >>>> hg clone [OPTION]... SOURCE [DEST] >>>> >>>> Create a copy of an existing repository in a new directory. >>>> >>>> If no destination directory name is specified, it defaults to the >>>> basename of the source. >>>> >>> In your case \mybitbucketproject is the basename so the hg clone is >>> adding it in for you. Try something like >>> hg clone https://m...@bitbucket.org/me/myproject ./ >>> do try getting it to close into your current directory. (Untested but >>> the general is to tell hg where to put the clone, in this case ./ being >>> current directory) >>> >>> >>> ~Brian >>> >>> >>> On Thursday, April 18, 2013 7:36:56 PM UTC-5, jjg0 wrote: >>>> >>>> I started checking out pythonanywhere but ran into some trouble getting >>>> my site up. I was going through tutorials and decided to try using >>>> tortoise hg mercurial and bitbucket to get my site from my computer to >>>> pythonanywhere. I was able to get mercurial on my computer and working, >>>> and upload my site to bitbucket. I can now push changes and make a >>>> separate clone of the repository on my pc, but I still can't get the site >>>> working on pythonanywhere. I tried using their bash console with the cmd >>>> >>>> hg clone https://m...@bitbucket.org/me/myproject. >>>> >>>> This works and I can see all my files on the pythonanywhere console, >>>> but it seems to always create and extra folder in pythonanywhere that does >>>> not happen on my pc. So locally I have a folder that contains >>>> >>>> \localfolder\.hg >>>> \localfolder\web2py >>>> \localfolder\.hgignore >>>> >>>> when I push this to bitbucket it looks like this: >>>> >>>> \mybitbucketproject\.hg >>>> \mybitbucketproject\web2py >>>> \mybitbucketproject\.hgignore >>>> >>>> >>>> When I clone my repo in pythonanywhere I end up with an extra folder: >>>> >>>> \mypythonanywherefolder\mybitbucketproject\.hg >>>> \mypythonanywherefolder\mybitbucketproject\web2py >>>> \mypythonanywherefolder\mybitbucketproject\.hgignore >>>> >>>> I don't know why the 'mybitbucketproject' folder gets created, it looks >>>> like pythonanywhere isn't expecting it to be there to work. I think it >>>> should look like '\mypythonanywhere\web2py' but I end up with an extra >>>> folder in between and my site doesn't work. I just get an Unhandled >>>> Exception if I go to the site. If I clone my repo on bitbucket to my pc I >>>> don't get that extra 'mybitbucketproject' folder. I don't know why it >>>> only >>>> does that on pythonanywhere, and I'm not sure how to fix this. I really >>>> don't know what I am doing, I only just found out what all this 'git' >>>> stuff >>>> was today. I also had to look up what ssl was. Getting a site working >>>> online seems to be the most difficult part for me. >>>> >>>> >>>> >>>> >>>> >>>> On Tuesday, April 16, 2013 10:31:49 PM UTC-4, pallav wrote: >>>>> >>>>> 1. I do not have any experience with HostMonster. If they give you >>>>> root access to a Linux (hopefully Ubuntu) shell it should be >>>>> straightforward to install web2py (using the instructions from the book). >>>>> It seems that this option has the most unknowns for you. >>>>> >>>>> 2. PythonAnywhere allows you to have custom domains if you buy their >>>>> Web Developer account ($12/month -- >>>>> https://www.pythonanywhere.com/pricing/). They seem to be very >>>>> responsive (active in user forums and blogs) and should be able to walk >>>>> you >>>>> through any issues you encounter -- probably the best option for you if >>>>> you >>>>> have limited experience. However over the last few weeks of using them, I >>>>> have found their servers to be unresponsive at times (usually resolves >>>>> itself within a 10-15 minutes). I'm on the free account though, their >>>>> paid >>>>> account claims more bandwidth. >>>>> >>>>> 3. Google App Engine also supports custom domains. You will have to >>>>> first sign up for a Google Apps for Business ( >>>>> http://www.google.com/intl/en/enterprise/apps/business/) account - >>>>> once you log in, you can go into domain settings and verify that you have >>>>> ownership of the custom domain you are claiming ( >>>>> http://support.google.com/a/bin/topic.py?hl=en&topic=9196&parent=2426592&ctx=topic), >>>>> >>>>> then you can set the rest of it up using the instructions at >>>>> https://developers.google.com/appengine/docs/domain . The cost will >>>>> probably come out to around what the PythonAnywhere account costs. >>>>> >>>>> Does your app need SSL? If so, Google App Engine may not work - SSL on >>>>> custom domain costs up to $40/month. If that is within your budget, it >>>>> seems the most stable/supported of your options. >>>>> >>>>> If that is too much, PythonAnywhere offers SSL, but you will have to >>>>> work with them via email/forums/phone (they need to install stuff >>>>> manually >>>>> for you when I checked last). >>>>> >>>>> >>>>> On Tuesday, April 16, 2013 8:43:55 PM UTC-4, jjg0 wrote: >>>>>> >>>>>> Hi Everyone >>>>>> >>>>>> I've been asked to replace a site for someone who currently has an >>>>>> account and domain with hostmonster. I made a demo for them they like >>>>>> with >>>>>> web2py and put it on google app engine. Aside from playing around with >>>>>> gae >>>>>> I've never actually deployed a web2py site. Pythonanywhere seems like >>>>>> it >>>>>> would be the ideal option, in fact I probably should have been using >>>>>> them >>>>>> from the beginning. But since everything I made is on gae and their >>>>>> current site is on hostmonster, it might be too late to consider >>>>>> pythonanywhere. For people who have experience deploying web2py, which >>>>>> route do you think would be easier given what I currently have to work >>>>>> with >>>>>> and how would I go about getting everything set up? >>>>>> >>>>>> 1. Just use their hostmonster account, in which case I have no idea >>>>>> how to get web2py working with them but hostmonster claims to support >>>>>> python. I'm guessing this would require the most work >>>>>> >>>>>> 2. Create a pythonanywhere account and upload the site there, then >>>>>> somehow use their current domain name they have with hostmonster? Is >>>>>> that >>>>>> even possible? If so, how? >>>>>> >>>>>> 3. Stay on google app engine since the site is already up and >>>>>> running and working. Then somehow start using their domain name with >>>>>> hostmonster instead of the generic www.mygmail.appspot.com? I've >>>>>> looked into this but it doesn't seem possible to do so. I found some >>>>>> tutorials that let you register a subdomain with google and use that, >>>>>> (register mysubdomain and have www.mygmail.mysubdomain.com and play >>>>>> with the settings to eventually use www.mysubdomain.com) but I >>>>>> haven't found anything that lets you use a domain you already own from >>>>>> another company. >>>>>> >>>>>> Despite how clueless I am with actually launching a site, the guy >>>>>> who owns this business is very computer illiterate and said I can go >>>>>> whatever route I think is best. (He foolishly assumes what I think is >>>>>> best >>>>>> and what actually is best are the same!) The only requirement is that >>>>>> the >>>>>> domain name for the site he owns stays the same. I think this part is >>>>>> what >>>>>> I'm really hung up on at the moment. >>>>>> >>>>>> Although I did make a demo site for them I wasn't planning on >>>>>> actually replacing their current site for a while, but for whatever >>>>>> reason >>>>>> they suddenly asked me to switch their site asap. I'm not a >>>>>> professional >>>>>> web developer and I'm not actually getting paid, so I'm a little >>>>>> unprepared:( >>>>>> >>>>>> Any help would be greatly appreciated! >>>>>> >>>>>> Thanks so much! >>>>>> >>>>>> >>>>>> -- --- 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/groups/opt_out.