Monday, July 1, 2013

Getting URL root

I have an app I distribute to clients.

When I run the app on my local machine I connect to http://127.0.0.1/...
When I'm VPN-ed into a client site I connect to the app on their
machine with http://xx.xx.xx.xx/...
When a client is running locally at their site they connect with
http://myappsname.company.com/....

I need to get that initial part of the URL from the python side. Is
there some way to do that? (I may be using the wrong terminology here
when I say 'url root'.)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment