Workin on it more

This commit is contained in:
Salt 2025-01-18 21:31:19 -06:00
parent de57fa29af
commit 068283234a
9 changed files with 30 additions and 1 deletions

View File

@ -15,8 +15,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import include, path
urlpatterns = [
path('odysee/', include("odyseescraper.urls")),
path('admin/', admin.site.urls),
]

View File

3
odyseescraper/admin.py Normal file
View File

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

6
odyseescraper/apps.py Normal file
View File

@ -0,0 +1,6 @@
from django.apps import AppConfig
class OdyseescraperConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'odyseescraper'

View File

3
odyseescraper/models.py Normal file
View File

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

3
odyseescraper/tests.py Normal file
View File

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

8
odyseescraper/urls.py Normal file
View File

@ -0,0 +1,8 @@
#! /usr/bin/env python3
from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
]

5
odyseescraper/views.py Normal file
View File

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