Provide extra context to all views
You could use the template context processor: myapp/context_processors.py: from django.contrib.auth.models import User from myapp.models import Project def users_and_projects(request): return {‘all_users’: User.objects.all(), ‘all_projects’: Project.objects.all()} And then add this processor to the TEMPLATE_CONTEXT_PROCESSORS setting for Django version < 1.8: TEMPLATE_CONTEXT_PROCESSORS = ( … ‘myapp.context_processors.users_and_projects’, ) And for Django version >= 1.8 add it to the context_processors list … Read more