diff options
Diffstat (limited to 'apps/core')
| -rw-r--r-- | apps/core/__init__.py | 0 | ||||
| -rw-r--r-- | apps/core/admin.py | 3 | ||||
| -rw-r--r-- | apps/core/apps.py | 6 | ||||
| -rw-r--r-- | apps/core/migrations/__init__.py | 0 | ||||
| -rw-r--r-- | apps/core/models.py | 3 | ||||
| -rw-r--r-- | apps/core/tests.py | 3 | ||||
| -rw-r--r-- | apps/core/urls.py | 8 | ||||
| -rw-r--r-- | apps/core/views.py | 8 |
8 files changed, 31 insertions, 0 deletions
diff --git a/apps/core/__init__.py b/apps/core/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/apps/core/__init__.py diff --git a/apps/core/admin.py b/apps/core/admin.py new file mode 100644 index 00000000..8c38f3f3 --- /dev/null +++ b/apps/core/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/apps/core/apps.py b/apps/core/apps.py new file mode 100644 index 00000000..ab0051ed --- /dev/null +++ b/apps/core/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class CoreConfig(AppConfig): + default_auto_field = "django.db.models.BigAutoField" + name = "apps.core" diff --git a/apps/core/migrations/__init__.py b/apps/core/migrations/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/apps/core/migrations/__init__.py diff --git a/apps/core/models.py b/apps/core/models.py new file mode 100644 index 00000000..71a83623 --- /dev/null +++ b/apps/core/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/apps/core/tests.py b/apps/core/tests.py new file mode 100644 index 00000000..7ce503c2 --- /dev/null +++ b/apps/core/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/apps/core/urls.py b/apps/core/urls.py new file mode 100644 index 00000000..8612977a --- /dev/null +++ b/apps/core/urls.py @@ -0,0 +1,8 @@ +from django.urls import path + +from . import views + +app_name = "blog" +urlpatterns = [ + path("", views.home, name="home"), +] diff --git a/apps/core/views.py b/apps/core/views.py new file mode 100644 index 00000000..359a1c86 --- /dev/null +++ b/apps/core/views.py @@ -0,0 +1,8 @@ +from django.shortcuts import render +from thatcomputerscientist.utils import i18npatterns + + +def home(request): + LANGUAGE_CODE = i18npatterns(request.LANGUAGE_CODE) + + return render(request, f"{LANGUAGE_CODE}/core/home.html") |
