Exemplo n.º 1
0
Arquivo: views.py Projeto: 3nvi/Fitman
def industry_comparison(request):

    add_product_form = AddProductForm()
    autocomplete_list = fetch_autocomplete_keywords()

    return render(
        request,
        'fitman/industry-comparison.html',
        {
            'autocomplete_list': json.dumps(autocomplete_list),
            'add_product_form': add_product_form
        }
    )
Exemplo n.º 2
0
Arquivo: views.py Projeto: 3nvi/Fitman
def fashion_trends(request):

    add_product_form = AddProductForm()
    autocomplete_list = fetch_autocomplete_keywords()

    return render(
        request,
        'fitman/fashion-trends.html',
        {
            'autocomplete_list': json.dumps(autocomplete_list),
            'add_product_form': add_product_form
        }
    )