2015/08/21

Django 取得網址列



程式碼:
from django.http import HttpResponse

def get_current_url(request):
 return {'url': request.get_full_path()}