from django.utils.encoding import smart_unicode
from django.utils.html import escape
-from django.http import get_host
from forum.authentication.base import AuthenticationConsumer, InvalidAuthentication
import settings
protocol = 'https'
else:
protocol = 'http'
- host = escape(get_host(request))
+ host = escape(request.get_host())
return '%s://%s' % (protocol, host)
def get_full_url(request):
- return get_url_host(request) + request.get_full_path()
\ No newline at end of file
+ return get_url_host(request) + request.get_full_path()