diff --git a/guncadindex/urls.py b/guncadindex/urls.py index 3807e3d..03922bb 100644 --- a/guncadindex/urls.py +++ b/guncadindex/urls.py @@ -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), ] diff --git a/odyseescraper/__init__.py b/odyseescraper/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/odyseescraper/admin.py b/odyseescraper/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/odyseescraper/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/odyseescraper/apps.py b/odyseescraper/apps.py new file mode 100644 index 0000000..975946f --- /dev/null +++ b/odyseescraper/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class OdyseescraperConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'odyseescraper' diff --git a/odyseescraper/migrations/__init__.py b/odyseescraper/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/odyseescraper/models.py b/odyseescraper/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/odyseescraper/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/odyseescraper/tests.py b/odyseescraper/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/odyseescraper/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/odyseescraper/urls.py b/odyseescraper/urls.py new file mode 100644 index 0000000..27cd0de --- /dev/null +++ b/odyseescraper/urls.py @@ -0,0 +1,8 @@ +#! /usr/bin/env python3 +from django.urls import path + +from . import views + +urlpatterns = [ + path("", views.index, name="index"), +] diff --git a/odyseescraper/views.py b/odyseescraper/views.py new file mode 100644 index 0000000..bbe73cf --- /dev/null +++ b/odyseescraper/views.py @@ -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.")