You could set a context variable, e.g., listing_operation = 'Edit' or 'Create'. Or you could use different templates, each inheriting a common template and only doing minor tweaks.
On Tue, Aug 24, 2010 at 9:04 AM, reduxdj <patricklemi...@gmail.com> wrote: > I have some decisions i need to make in my template based on the view > that has been rendered in the browser. > > For instance: > > I need to know if the user is on gather.view.create_listing or > gather.view.edit_listing? > > How can I do this in django, it alludes me. > > Thanks, > Patrick > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.