Hi I am creating my first serious project with Django and looking for ways to play around with the urls. For instance lets say a user was sending a message to another user from (current url on the browser) "/ send_message/" and I want to redirect the user on posting the message to /sent_messages/ or /failed_messages/ based on the success/failure of the send_message operation, the 2 ways I can think of are:
1) HttpResponseRedirect("/failed_messages/?status=fail&info=Max+message +count+reached) #or some such thing with messy urls 2) return show_failed_messages( request, message="Fail. Max message count reached" ) #this would still show "/send_message/" for the URL but the template rendered would be my_messages.html Ideal case for me would be to call the show_failed_messages (or show_sent_messages) view function with the HttpRequest object and extra parameters for status messages etc, but somehow show the URL on the browser as "/my_messages/" without all the get variables. Hope I have worded my problem right. Any help is greatly appreciated! Thanks in Advance, S --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---