shifted get_url to startup
diff --git a/startup/__init__.py b/startup/__init__.py
index 18ae932..c1f4660 100644
--- a/startup/__init__.py
+++ b/startup/__init__.py
@@ -53,3 +53,14 @@
 		return 999999
 	else:
 		return 500
+
+def get_url():
+	from webnotes.utils import get_request_site_address
+	url = get_request_site_address()
+	if not url or "localhost" in url:
+		subdomain = webnotes.conn.get_value("Website Settings", "Website Settings",
+			"subdomain")
+		if subdomain:
+			if "http" not in subdomain:
+				url = "http://" + subdomain
+	return url
\ No newline at end of file