On 3/30/07, Arvin Schnell <[EMAIL PROTECTED]> wrote: > > On Fri, Mar 30, 2007 at 03:01:44AM -0700, Helge wrote: > > *SNIP* > > I wonder if there is a standard way in Django to prevent URLs from > > being called directly. > > You can use the require_POST decorator to ensure that the view > has some POST data. > > IIRC it responses with a 405 error if the POST data is missing > but that's not displayed as an error message to the user. Maybe > this can be enhanced. > > Arvin
Another idea would be to redirect to the form page. So, process the data if it exists, or redirect the request to the 'proper' from page. Regards, Cam --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---