def company_information(request, information):
all_urls = {
'contacts': {'template': 'company/contacts.html',
'values': {'phone': '8-800-708-19-45', 'email': 'sales@company.com'}},
'categories': {'template': 'company/categories.html',
'values': {'category_list': ['личные вещи', 'транспорт', 'хобби', 'отдых']}},
'regions': {'template': 'company/regions.html', 'values': {
'regions_list': ['Москва', 'Московская область', 'республика Алтай',
'Вологодская область']}},
'test': {'template': 'company/contacts.html',
'values': {'phone': '8-800-708-19-45', 'email': 'sales@company.com'}}}
all_information = all_urls[information]
return render(request, all_information['template'], {'all_information': all_information})