From d4ac66a3e90f6f7c5b4a57fd783ab76fa7164763 Mon Sep 17 00:00:00 2001 From: James Lee <82937700+SafetyInObscurity@users.noreply.github.com> Date: Sat, 30 Nov 2024 12:47:56 +0800 Subject: [PATCH] Issue 17 create the bingo app (#18) * Initialise the bingo app * Add bingo app to installed apps * Ignoring warnings :) --- server/api/settings.py | 1 + server/bingo/__init__.py | 0 server/bingo/admin.py | 3 +++ server/bingo/apps.py | 6 ++++++ server/bingo/migrations/__init__.py | 0 server/bingo/models.py | 3 +++ server/bingo/tests.py | 3 +++ server/bingo/views.py | 3 +++ 8 files changed, 19 insertions(+) create mode 100644 server/bingo/__init__.py create mode 100644 server/bingo/admin.py create mode 100644 server/bingo/apps.py create mode 100644 server/bingo/migrations/__init__.py create mode 100644 server/bingo/models.py create mode 100644 server/bingo/tests.py create mode 100644 server/bingo/views.py diff --git a/server/api/settings.py b/server/api/settings.py index f1e5f46..e31bd0a 100644 --- a/server/api/settings.py +++ b/server/api/settings.py @@ -52,6 +52,7 @@ "rest_framework", "corsheaders", "api.healthcheck", + "bingo", ] MIDDLEWARE = [ diff --git a/server/bingo/__init__.py b/server/bingo/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/server/bingo/admin.py b/server/bingo/admin.py new file mode 100644 index 0000000..a4e11e9 --- /dev/null +++ b/server/bingo/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin # noqa + +# Register your models here. diff --git a/server/bingo/apps.py b/server/bingo/apps.py new file mode 100644 index 0000000..4f7570f --- /dev/null +++ b/server/bingo/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class BingoConfig(AppConfig): + default_auto_field = "django.db.models.BigAutoField" + name = "bingo" diff --git a/server/bingo/migrations/__init__.py b/server/bingo/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/server/bingo/models.py b/server/bingo/models.py new file mode 100644 index 0000000..56b48a5 --- /dev/null +++ b/server/bingo/models.py @@ -0,0 +1,3 @@ +from django.db import models # noqa + +# Create your models here. diff --git a/server/bingo/tests.py b/server/bingo/tests.py new file mode 100644 index 0000000..b8ab89e --- /dev/null +++ b/server/bingo/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase # noqa + +# Create your tests here. diff --git a/server/bingo/views.py b/server/bingo/views.py new file mode 100644 index 0000000..6921674 --- /dev/null +++ b/server/bingo/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render # noqa + +# Create your views here.