Add empty feeds app

This commit is contained in:
Joakim Hellsén 2026-03-24 00:21:03 +01:00
commit c971117e67
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
8 changed files with 35 additions and 1 deletions

View file

@ -140,6 +140,7 @@ INSTALLED_APPS: list[str] = [
"django.contrib.staticfiles",
"django.contrib.postgres",
# Internal apps
"feeds.apps.FeedsConfig",
# Third-party apps
"django_celery_results",
"django_celery_beat",

View file

@ -10,7 +10,7 @@ if TYPE_CHECKING:
from django.urls.resolvers import URLResolver
urlpatterns: list[URLPattern | URLResolver] = [
path(route="silk/", view=include("silk.urls", namespace="silk")),
path("", include("feeds.urls")),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

0
feeds/__init__.py Normal file
View file

7
feeds/apps.py Normal file
View file

@ -0,0 +1,7 @@
from django.apps import AppConfig
class FeedsConfig(AppConfig):
"""Configuration for the feeds app."""
name = "feeds"

View file

0
feeds/models.py Normal file
View file

26
feeds/urls.py Normal file
View file

@ -0,0 +1,26 @@
from typing import TYPE_CHECKING
from django.http import HttpResponse
from django.urls import path
if TYPE_CHECKING:
from django.http import HttpRequest
from django.urls import URLPattern
from django.urls import URLResolver
def index(request: HttpRequest) -> HttpResponse:
"""View for the index page.
Args:
request: The HTTP request object.
Returns:
HttpResponse: A simple HTTP response with a greeting message.
"""
return HttpResponse("Hello, world!")
urlpatterns: list[URLPattern | URLResolver] = [
path("", index, name="index"),
]

0
feeds/views.py Normal file
View file