How does one get the domain the application is running on?

I have an email template where I pass in a url , obviously the url needs to
be fully qualified. How do i make it so that I do not have to hardcode the
domain, so the application can run on different environments without
changing anything? (localhost vs. productionsite.com)

Thanks!
-- 
View this message in context: 
http://www.nabble.com/How-do-I-get-the-domain-the-application-is-running-on--tp19536577p19536577.html
Sent from the django-users mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to