Skip to content

Instantly share code, notes, and snippets.

@dima734
Created July 29, 2020 15:43
Show Gist options
  • Save dima734/4f03f3ff64059d0cd00cfeebc00efd3f to your computer and use it in GitHub Desktop.
Save dima734/4f03f3ff64059d0cd00cfeebc00efd3f to your computer and use it in GitHub Desktop.
primer
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