I am little bit confused about creating full url. I have such code :
def flats(self):
return [JsonFlatPage(property_data = flat, url = flat['propertyUrl'])
for flat in self.data['properties']]
in flat['propertyUrl'] I have '/properties/75599853', but I need to get like this one:
'https://www.rightmove.co.uk/properties/75599853#/'
with full path and # at the end. I know that I should make constant URI in settings file, but then how I can convert it? Should I use f-strings?
flat['url']contain domain name ?domain_name = 'https://...'thenurl=domain_name+flat['propertyUrl']