Forums

Dreamhost running Django on PythonAnywhere

Hi,

Has anyone tried to host Pythonanywhere thru Dreamhost? It seems there's a number of steps outlined by Dreamhost in conjunction to this (which I have done) but I'm not getting it to work properly. So far I've:

(1) Enabled Passenger on Dreamhost - http://wiki.dreamhost.com/Passenger

(2) Added a wsgi file ( /home/username/example.com/passenger_wsgi.py ) and set up the basic Hello World result, with success as per:Setting up Passenger WSGI (same link as in #1)

(3) Created a new webapp on pythonanywhere per: https://help.pythonanywhere.com/pages/OwnDomains

(4) Copied the wsgi file from #3 to the wsgi file in #2 (per link info in #3)

(5) Updated the DNS only entry on Dreamhost per: http://wiki.dreamhost.com/Custom_DNS

(6) Add the A-record record on Dreamhost per Link in #5.

Any help much appreciated!!

I'm a bit confused about what you're trying to get as the end result. Do you simply want www.yourdomain.com to display a web site that's hosted on PythonAnywhere? Or is it something more complicated?

Yes, I would like www.yourdomain.com to display a web site that's hosted on PythonAnywhere.com.

I would like to run Django thru PythonAnywhere, specifically.

OK -- then I don't think you need to use Passenger at all -- that's a way of running Python on Dreamhost's servers, if I understand correctly, so you don't need it if you're running on PythonAnywhere.

Just so I fully understand -- why are you using Dreamhost at all if you want to run your app here? Is it just for the domain name? I think all you need to do with them is set up a CNAME with "name" set to "www", type set to "CNAME", and "value" set to the value you can see on the "Web" tab on PythonAnywhere (something like webapp-1238831.pythonanywhere.com. No need to set up an A record.

Yes I am running via Dreamhost for the domain name. Currently I'm testing out Django and would rather not have to keep switching my web app wsgi file each time I want to test out certain features. Also I'd like to deploy Flask at some point.

I will try the CNAME step and see if it works, thanks.