This commit is contained in:
Pratyush Desai 2022-09-09 07:50:35 +05:30
parent 8eeaf4a1ca
commit f565f2437b
Signed by: pratyush
GPG Key ID: DBA5BB7505946FAD
11 changed files with 33 additions and 1 deletions

View File

@ -32,6 +32,7 @@ ALLOWED_HOSTS = []
INSTALLED_APPS = [ INSTALLED_APPS = [
"scheduler.apps.SchedulerConfig", "scheduler.apps.SchedulerConfig",
"polls.apps.PollsConfig",
"django.contrib.admin", "django.contrib.admin",
"django.contrib.auth", "django.contrib.auth",
"django.contrib.contenttypes", "django.contrib.contenttypes",

View File

@ -18,5 +18,6 @@ from django.urls import include, path
urlpatterns = [ urlpatterns = [
path('scheduler/', include('scheduler.urls')), path('scheduler/', include('scheduler.urls')),
path('polls/', include("polls.urls")),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
] ]

View File

3
LCAdmin/polls/admin.py Normal file
View File

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

6
LCAdmin/polls/apps.py Normal file
View File

@ -0,0 +1,6 @@
from django.apps import AppConfig
class PollsConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "polls"

View File

3
LCAdmin/polls/models.py Normal file
View File

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

3
LCAdmin/polls/tests.py Normal file
View File

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

7
LCAdmin/polls/urls.py Normal file
View 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
View 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.")

View File

@ -5,4 +5,4 @@ from django.http import HttpResponse
def index(request): def index(request):
return HttpResponse("Hello, world. You're at the polls index.") return HttpResponse("Hello, world. You're at the Scheduler index.")