Reputation: 7615
I've gotten part way through deploying my new webapp on PythonAnywhere, and currently it's got the 'Coming Soon' place holder.
When I refresh the app from the web tab it tells me I need to set the CNAME,and from what I remember that involves redirecting from my Domain Service (Gandi in this case).
There is a problem with your domain name configuration. Take a look at the DNS setup section below for details. Be aware that DNS changes can take some time to propagate across the internet. The exact time they take will depend on your domain configuration, but it could be as long as a day.
You domain's current CNAME is webredir.vip.gandi.net. Check this help page for more information about how to set it up correctly.
I don't want to do that yet.
What I want is to 'preview' my page at webapp-XXXXXX.pythonanywhere.com
before it goes live.
This suggests that I:
add a line with the IP address you got from the previous step, then a tab, then the host name you've set up the web app with in PythonAnywhere.
But I've not found that to work, and besides, how would that let me see what's hosted online? It would just let me access it via a different URL.
Here what I added to my hosts file:
50.19.109.98 webapp-206115.pythonanywhere.com/
How can I test my website on PythonAnywhere before setting up my CNAME?
Upvotes: 2
Views: 1193
Reputation: 130
The easiest solution i found for this is to rename the webapp to <username>.pythonanywhere.com
. Thats the default for the free subscription and it still works for me after i change to a payed plan. But i dont know if this is because i already had registered a webapp under this name or if this always works.
Upvotes: 1