From f531f92b485b8010a4da9c99824bff39468656ae Mon Sep 17 00:00:00 2001 From: Alexander Schulz Date: Mon, 2 Sep 2024 01:08:48 +0200 Subject: [PATCH] added django app dbmodels --- products/__init__.py | 0 products/admin.py | 3 +++ products/apps.py | 6 ++++++ products/migrations/__init__.py | 0 products/models.py | 3 +++ products/tests.py | 3 +++ products/views.py | 3 +++ 7 files changed, 18 insertions(+) create mode 100644 products/__init__.py create mode 100644 products/admin.py create mode 100644 products/apps.py create mode 100644 products/migrations/__init__.py create mode 100644 products/models.py create mode 100644 products/tests.py create mode 100644 products/views.py diff --git a/products/__init__.py b/products/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/products/admin.py b/products/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/products/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/products/apps.py b/products/apps.py new file mode 100644 index 0000000..145a2ac --- /dev/null +++ b/products/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class ProductsConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'products' diff --git a/products/migrations/__init__.py b/products/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/products/models.py b/products/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/products/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/products/tests.py b/products/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/products/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/products/views.py b/products/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/products/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here.