summaryrefslogtreecommitdiff
path: root/coip/utils.py
blob: f340721187d692a4c8bfb92b4e5a6a7d1741e558 (plain)
1
2
3
4
5
6
7
8
9
10
11
'''
Created on Apr 5, 2012

@author: leifj
'''

def get_full_path(request,path=None):
    if path == None:
        path = request.path
    full_path = ('http', ('', 's')[request.is_secure()], '://', request.META['HTTP_HOST'], path)
    return ''.join(full_path)