Hello guys, first thank you for your suggestions. I have to admit I'm pretty new to Django and coding itself, so please be patient with me. *g*
>From your the ideas I tried to implement the following one. > if (None == request.META.get('HTTP_REFERER')): > return HttpResponseRedirect(reverse(YOUR VIEW FUNCTION THAT > REDIRECT TO DOWNLOAD URL)) > elif (-1 == request.META.get('HTTP_REFERER') > .find(reverse(YOUR VIEW FUNCTION THAT REDIRECT TO > DOWNLOAD URL))): > return HttpResponseRedirect(reverse(YOUR VIEW FUNCTION THAT > REDIRECT TO DOWNLOAD URL)) > elif (request.method == 'POST'): But I think it would be better to show you my complete views.py http://pastebin.org/13392 And for the sake of completeness my urls.py http://pastebin.org/13391 After starting the development server I receive the error message: IndentationError at / ('unindent does not match any outer indentation level', ('/home/ orschiro/projects/test/download/views.py', 13, 50, "\t elif (-1 == request.META.get('HTTP_REFERER')\n")) If this approach isn't working I may try your other suggestions but as I'm quite a newbie I'm happy about all detailed help I can get. Once again thanks for your help. orschiro --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---