Categories
User Help Web Pro

Connecting Google App Engine App with my subdomain

Our website is hosted with loopia at mydomain.com, but we also have a webapp running on Google App Engine which we would like to run on subdomain.mydomain.com. We also have a couple of other subdomains running, but those are simply referred to via the IP address. I have followed the steps at https://cloud.google.com/appengine/docs/standard/python/mapping-custom-domains#dns_update. The Domain […]

Categories
Mastering Development

What is the best way to allow only one of a pair of arguments in a Python class constructor?

I have a class which essentially functions like the example below. The constructor takes two arguments, which are both defaulted to None if no value is given. The goal of the class is that, given a value for foo, the user can call the calculateBar() function to calculate the value of bar. Conversely, the user […]