def index_view(request): """ Index view (render index.html). SHow search form. Randomize theme. :param request: HttpRequest :return: HttpResponse """ form = SearchForm() theme_id = define_theme(request) return render(request, "index.html", {"theme_id": theme_id, 'form': form})
def privacy(request): theme_id = define_theme(request) return render(request, "additional/privacy.html", {"theme_id": theme_id})
def advertising(request): theme_id = define_theme(request) return render(request, "additional/advertising.html", {"theme_id": theme_id})
def rules(request): theme_id = define_theme(request) return render(request, "additional/rules.html", {"theme_id": theme_id})
def for_biz_view(request): theme_id = define_theme(request) return render(request, "additional/for_biz_view.html", {"theme_id": theme_id})