1st commit

This commit is contained in:
2026-05-14 23:31:30 -03:00
commit a143e17df4
28 changed files with 249 additions and 0 deletions

0
polls/__init__.py Normal file
View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

3
polls/admin.py Normal file
View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

5
polls/apps.py Normal file
View File

@@ -0,0 +1,5 @@
from django.apps import AppConfig
class PollsConfig(AppConfig):
name = 'polls'

View File

Binary file not shown.

3
polls/models.py Normal file
View File

@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

3
polls/tests.py Normal file
View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

7
polls/urls.py Normal file
View File

@@ -0,0 +1,7 @@
from django.urls import path
from polls import views
urlpatterns = [
path('index', views.index, name='index'),
path('ola', views.ola, name='ola')
]

10
polls/views.py Normal file
View File

@@ -0,0 +1,10 @@
from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
def index(request):
return render(request, 'index.html')
def ola(request):
return HttpResponse("Olá !!")