Workin on it more
This commit is contained in:
parent
de57fa29af
commit
068283234a
@ -15,8 +15,9 @@ Including another URLconf
|
|||||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||||
"""
|
"""
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path
|
from django.urls import include, path
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
|
path('odysee/', include("odyseescraper.urls")),
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
]
|
]
|
||||||
|
0
odyseescraper/__init__.py
Normal file
0
odyseescraper/__init__.py
Normal file
3
odyseescraper/admin.py
Normal file
3
odyseescraper/admin.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
6
odyseescraper/apps.py
Normal file
6
odyseescraper/apps.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class OdyseescraperConfig(AppConfig):
|
||||||
|
default_auto_field = 'django.db.models.BigAutoField'
|
||||||
|
name = 'odyseescraper'
|
0
odyseescraper/migrations/__init__.py
Normal file
0
odyseescraper/migrations/__init__.py
Normal file
3
odyseescraper/models.py
Normal file
3
odyseescraper/models.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.db import models
|
||||||
|
|
||||||
|
# Create your models here.
|
3
odyseescraper/tests.py
Normal file
3
odyseescraper/tests.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
8
odyseescraper/urls.py
Normal file
8
odyseescraper/urls.py
Normal 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
5
odyseescraper/views.py
Normal 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.")
|
Loading…
x
Reference in New Issue
Block a user