Skip to content

Commit c022ba2

Browse files
committed
feat: Create polls app
- 개발 서버 시작 - 설문조사 앱 만들기 - 뷰 작성하기
1 parent 39da511 commit c022ba2

File tree

12 files changed

+27
-0
lines changed

12 files changed

+27
-0
lines changed

mysite/db.sqlite3

Whitespace-only changes.

mysite/polls/__init__.py

Whitespace-only changes.
145 Bytes
Binary file not shown.
276 Bytes
Binary file not shown.
389 Bytes
Binary file not shown.

mysite/polls/admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.

mysite/polls/apps.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class PollsConfig(AppConfig):
5+
default_auto_field = 'django.db.models.BigAutoField'
6+
name = 'polls'

mysite/polls/migrations/__init__.py

Whitespace-only changes.

mysite/polls/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.db import models
2+
3+
# Create your models here.

mysite/polls/tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.test import TestCase
2+
3+
# Create your tests here.

mysite/polls/urls.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.urls import path
2+
from . import views
3+
4+
urlpatterns = [
5+
path('', views.index, name='index'),
6+
]

mysite/polls/views.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.shortcuts import render
2+
from django.http import HttpResponse
3+
4+
5+
def index(request):
6+
return HttpResponse("Hello, world! You're at the polls index.")

0 commit comments

Comments
 (0)