Forums

Additional subdomain support

I have added a domain to one of my applications on PythonAnywhere.

www.example.com -> user.pythonanywhere.com (CNAME)

Is it possible to add an additional subdomain to it? I would like this subdomain to point to one of the directories within an app. Example:

admin.example.com ---> example.com/admin

How can I do it?

You'll need to create a web app with the extra domain name. If you just want to use the same code for it, you can use the Manual configuration option and then just copy the WSGI file from your existing app over the WSGI file for the new app.