diff --git a/friendly_cat/__init__.py b/friendly_cat/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/friendly_cat/apps.py b/friendly_cat/apps.py new file mode 100644 index 0000000..4f49547 --- /dev/null +++ b/friendly_cat/apps.py @@ -0,0 +1,10 @@ +""" +Configuration of the friendly_cat Django app +""" + +from django.apps import AppConfig + + +class FriendlyCatConfig(AppConfig): + name = "friendly_cat" + verbose_name = "Friendly Cat" diff --git a/friendly_cat/templates/friendly_cat/index.html b/friendly_cat/templates/friendly_cat/index.html new file mode 100644 index 0000000..3e0962c --- /dev/null +++ b/friendly_cat/templates/friendly_cat/index.html @@ -0,0 +1,23 @@ + + + + + + + ungleich_screening_task + + +
+ {% with default_pic_width=400 default_pic_height=400 %} +
+ A friendly cat picture +
A friendly cat picture
+
+ {% endwith %} +
+ + diff --git a/friendly_cat/urls.py b/friendly_cat/urls.py new file mode 100644 index 0000000..e34c06a --- /dev/null +++ b/friendly_cat/urls.py @@ -0,0 +1,10 @@ +""" +URLs for the friendly_cat Django app +""" + +from django.urls import path +from friendly_cat import views + +urlpatterns = [ + path("", views.index, name="index"), +] diff --git a/friendly_cat/views.py b/friendly_cat/views.py new file mode 100644 index 0000000..b230663 --- /dev/null +++ b/friendly_cat/views.py @@ -0,0 +1,9 @@ +""" +Views for the friendly_cat Django app +""" + +from django.shortcuts import render + + +def index(request): + return render(request, "friendly_cat/index.html") diff --git a/ungleich_screening_task/settings.py b/ungleich_screening_task/settings.py index 8a4894c..7dd0bea 100644 --- a/ungleich_screening_task/settings.py +++ b/ungleich_screening_task/settings.py @@ -48,6 +48,7 @@ INSTALLED_APPS = [ "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", + "friendly_cat", ] MIDDLEWARE = [ diff --git a/ungleich_screening_task/urls.py b/ungleich_screening_task/urls.py index 4efd9c0..37ce067 100644 --- a/ungleich_screening_task/urls.py +++ b/ungleich_screening_task/urls.py @@ -14,8 +14,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("", include("friendly_cat.urls")), path("admin/", admin.site.urls), ]