Created
July 29, 2020 15:43
-
-
Save dima734/4f03f3ff64059d0cd00cfeebc00efd3f to your computer and use it in GitHub Desktop.
primer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.shortcuts import render | |
import json | |
from django.db.models import Q | |
from .models import AutoProduct | |
from .models import AutoInfo | |
from .models import UzlyVsehAvto | |
from .models import UzlyVsehAvtoGlavnoe | |
def uzly_display(): | |
array_uzly = [] | |
array_uzly = UzlyVsehAvto.objects.all() | |
return array_uzly | |
def index(request): | |
args = {} | |
args['page_name'] = 'index' | |
args['form'] = None | |
# read_products() | |
# copy_weird_info() | |
args['object_list'] = uzly_display() | |
# insert_spisok3_json() | |
# insert_spisok_json() | |
# insert_spisok_json_1455() | |
# delete_all_uzly() | |
return render(request, 'catalog/uzly.html', args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment