Forums

CNAME issue. Restarted project from scratch, but CNAME wont link to new webapp of the same domain.

Hi,

So I decided to start from scratch and delete my web app. I deleted the web app on the web tab, and the file directory, along with all of its contents, from its directory in the Files tab. .

Upon making a new web app, I selected python 3.4 (previous project was 2.7), and flask (previously flask) as my framework.

I then set the CNAME listed on the apps' web tab on my dns server with the alias www.

According to https://www.whatsmydns.net, the domain I want to point to my project has a cname of webapp-170296.pythonanywhere.com which is where I want it pointing. I also checked the wsgi file and it appears to be correct, after consulting with these instructions: https://help.pythonanywhere.com/pages/OwnDomains

However, I keep getting the message shown Developer info

"""

Hi! If this is your PythonAnywhere-hosted site, then you're almost there — you just need to create a web app to handle this domain, webapp-170296.pythonanywhere.com.

Go to the "Web" tab inside PythonAnywhere and click "Add a new web app". If you already have a web app and you want to use the same code for this domain (say because you've just upgraded and want the site you built at yourusername.pythonanywhere.com to run on www.yourdomain.com) then this help page should explain everything.

"""

Any help would be appreciated.

Your CNAME is for www., a but your web app name does not have the www.