Exemple #1
0
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})
Exemple #2
0
def privacy(request):
    theme_id = define_theme(request)
    return render(request, "additional/privacy.html", {"theme_id": theme_id})
Exemple #3
0
def advertising(request):
    theme_id = define_theme(request)
    return render(request, "additional/advertising.html",
                  {"theme_id": theme_id})
Exemple #4
0
def rules(request):
    theme_id = define_theme(request)
    return render(request, "additional/rules.html", {"theme_id": theme_id})
Exemple #5
0
def for_biz_view(request):
    theme_id = define_theme(request)
    return render(request, "additional/for_biz_view.html",
                  {"theme_id": theme_id})