parent
533dc316e8
commit
c919a293d9
8 changed files with 31 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,8 @@ |
|||||||
|
from django.urls import path |
||||||
|
|
||||||
|
from . import views |
||||||
|
|
||||||
|
urlpatterns = [ |
||||||
|
path('', views.index, name='index'), |
||||||
|
|
||||||
|
] |
@ -0,0 +1,8 @@ |
|||||||
|
from django.shortcuts import render |
||||||
|
from django.http import HttpResponse |
||||||
|
|
||||||
|
|
||||||
|
# Create your views here. |
||||||
|
|
||||||
|
def index(request): |
||||||
|
return HttpResponse("Hello, Django. U are at the polls index") |
Loading…
Reference in new issue