1st commit
This commit is contained in:
0
polls/__init__.py
Normal file
0
polls/__init__.py
Normal file
BIN
polls/__pycache__/__init__.cpython-314.pyc
Normal file
BIN
polls/__pycache__/__init__.cpython-314.pyc
Normal file
Binary file not shown.
BIN
polls/__pycache__/admin.cpython-314.pyc
Normal file
BIN
polls/__pycache__/admin.cpython-314.pyc
Normal file
Binary file not shown.
BIN
polls/__pycache__/apps.cpython-314.pyc
Normal file
BIN
polls/__pycache__/apps.cpython-314.pyc
Normal file
Binary file not shown.
BIN
polls/__pycache__/models.cpython-314.pyc
Normal file
BIN
polls/__pycache__/models.cpython-314.pyc
Normal file
Binary file not shown.
BIN
polls/__pycache__/urls.cpython-314.pyc
Normal file
BIN
polls/__pycache__/urls.cpython-314.pyc
Normal file
Binary file not shown.
BIN
polls/__pycache__/views.cpython-314.pyc
Normal file
BIN
polls/__pycache__/views.cpython-314.pyc
Normal file
Binary file not shown.
3
polls/admin.py
Normal file
3
polls/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
5
polls/apps.py
Normal file
5
polls/apps.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PollsConfig(AppConfig):
|
||||
name = 'polls'
|
||||
0
polls/migrations/__init__.py
Normal file
0
polls/migrations/__init__.py
Normal file
BIN
polls/migrations/__pycache__/__init__.cpython-314.pyc
Normal file
BIN
polls/migrations/__pycache__/__init__.cpython-314.pyc
Normal file
Binary file not shown.
3
polls/models.py
Normal file
3
polls/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
polls/tests.py
Normal file
3
polls/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
7
polls/urls.py
Normal file
7
polls/urls.py
Normal 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
10
polls/views.py
Normal 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á !!")
|
||||
Reference in New Issue
Block a user