The situation is that I must use a domain without www as primary option for a Flask app. Of course I read your help page about naked domains (https://help.pythonanywhere.com/pages/NakedDomains) but I wanna be sure if I understand everything properly.
I would like to redirect sampledomain.com without www by utilizing an A record, then redirect the www version with CNAME. The Flask app of the www version simply redirects the main page and subpages to the non www version with a 301 redirect. (I do believe this solution won't hurt my rankings from SEO view point as there are no dupe sites. )
So the question is, can this solution lead to any issues with your "system"? Or the non www version will work exactly the same way as recommended www versions?