Hi The hash mark has a special meaning in URIs; this is not specific to Django
If you must use it in an actual URL, it needs to be escaped as %23 The urlencode template tag might help https://docs.djangoproject.com/en/dev/ref/templates/builtins/#urlencode Notice that this URL uses a hash mark as intended to reference an anchor in the HTML page On Thu, 14 Aug 2014 03:01:00 -0700 (PDT) Domagoj Kovač <doctorko...@gmail.com> wrote: > Hi Guys, > > I have a problem, i have url > like: > http://127.0.0.1:8000/get-file?file_path=/home/domagoj/pcap/#1/test.txt > where file_path is path to the file > > both > requestGET["file_path"] and > request.get_full_path() > > ignore #1/test.txt part, how can i fix this? Is there some other way to > get full url? > -- Drew Ferguson -- 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+unsubscr...@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. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20140814112704.56472021%40blacktav.fergiesontour.org. For more options, visit https://groups.google.com/d/optout.