From 7d21478f7c2eaa3f3bea46fcc1fdcaae0e4018c3 Mon Sep 17 00:00:00 2001 From: zakhy Date: Tue, 28 Jan 2025 22:11:20 +0700 Subject: [PATCH] bot app --- app/project/settings.py | 2 ++ bot/__init__.py | 0 bot/admin.py | 3 +++ bot/apps.py | 6 ++++++ bot/migrations/__init__.py | 0 bot/models.py | 3 +++ bot/tests.py | 3 +++ bot/views.py | 3 +++ 8 files changed, 20 insertions(+) create mode 100644 bot/__init__.py create mode 100644 bot/admin.py create mode 100644 bot/apps.py create mode 100644 bot/migrations/__init__.py create mode 100644 bot/models.py create mode 100644 bot/tests.py create mode 100644 bot/views.py diff --git a/app/project/settings.py b/app/project/settings.py index bce6054..bc0b8e3 100644 --- a/app/project/settings.py +++ b/app/project/settings.py @@ -16,6 +16,8 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + + 'bot.apps.BotConfig', ] MIDDLEWARE = [ diff --git a/bot/__init__.py b/bot/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bot/admin.py b/bot/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/bot/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/bot/apps.py b/bot/apps.py new file mode 100644 index 0000000..1cd7ff2 --- /dev/null +++ b/bot/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class BotConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'bot' diff --git a/bot/migrations/__init__.py b/bot/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bot/models.py b/bot/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/bot/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/bot/tests.py b/bot/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/bot/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/bot/views.py b/bot/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/bot/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here.