polls
This commit is contained in:
parent
8eeaf4a1ca
commit
f565f2437b
@ -32,6 +32,7 @@ ALLOWED_HOSTS = []
|
||||
|
||||
INSTALLED_APPS = [
|
||||
"scheduler.apps.SchedulerConfig",
|
||||
"polls.apps.PollsConfig",
|
||||
"django.contrib.admin",
|
||||
"django.contrib.auth",
|
||||
"django.contrib.contenttypes",
|
||||
|
@ -18,5 +18,6 @@ from django.urls import include, path
|
||||
|
||||
urlpatterns = [
|
||||
path('scheduler/', include('scheduler.urls')),
|
||||
path('polls/', include("polls.urls")),
|
||||
path('admin/', admin.site.urls),
|
||||
]
|
||||
|
0
LCAdmin/polls/__init__.py
Normal file
0
LCAdmin/polls/__init__.py
Normal file
3
LCAdmin/polls/admin.py
Normal file
3
LCAdmin/polls/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
LCAdmin/polls/apps.py
Normal file
6
LCAdmin/polls/apps.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PollsConfig(AppConfig):
|
||||
default_auto_field = "django.db.models.BigAutoField"
|
||||
name = "polls"
|
0
LCAdmin/polls/migrations/__init__.py
Normal file
0
LCAdmin/polls/migrations/__init__.py
Normal file
3
LCAdmin/polls/models.py
Normal file
3
LCAdmin/polls/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
LCAdmin/polls/tests.py
Normal file
3
LCAdmin/polls/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
7
LCAdmin/polls/urls.py
Normal file
7
LCAdmin/polls/urls.py
Normal file
@ -0,0 +1,7 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.index, name='index'),
|
||||
]
|
8
LCAdmin/polls/views.py
Normal file
8
LCAdmin/polls/views.py
Normal file
@ -0,0 +1,8 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
from django.http import HttpResponse
|
||||
|
||||
|
||||
def index(request):
|
||||
return HttpResponse("Hello, world. You're at the polls index.")
|
@ -5,4 +5,4 @@ from django.http import HttpResponse
|
||||
|
||||
|
||||
def index(request):
|
||||
return HttpResponse("Hello, world. You're at the polls index.")
|
||||
return HttpResponse("Hello, world. You're at the Scheduler index.")
|
Loading…
Reference in New Issue
Block a user