def view1(request):
...
...
if (request.user.company == 'ABC'):
context['ABC-option1'] = 'something'
...
context['ABC-option3'] = 'different'
...
if (request.user.company == 'XYZ'):
context['XYZ-option1'] = 'an option'
...
context['XYZ-option3'] = 'manager'
... ...
return render(request, 'templates/index.html', context)
def about_me(request):
...
return render(request, 'aboutme.html', context)
--
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...@googlegroups.com.
To post to this group, send email to django...@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/4ffb12d3-27cc-4efb-9957-1001ebe7db85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| Filipe Ximenes +55 (81) 8245-9204 Vinta Software Studio http://www.vinta.com.br |