Add files via upload

This commit is contained in:
VladEpifanov
2023-05-21 23:25:37 +03:00
committed by GitHub
parent 1d4d56d5dd
commit d10ab73325
7 changed files with 29 additions and 0 deletions
@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.
@@ -0,0 +1,6 @@
from django.apps import AppConfig
class PollsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'polls'
@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.
@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.
@@ -0,0 +1,6 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index')
]
@@ -0,0 +1,8 @@
from django.http import HttpResponse
from django.shortcuts import render
from db_get import djselect
def index(request):
a = djselect()
return render(request, 'polls/index.html', {'data': a})