From 22fb6a357f1b6b91f04a180604e2f992280ee661 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Tue, 21 Feb 2023 16:46:11 -0800 Subject: add django app template --- checkin/settings.py | 2 ++ checkin/urls.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'checkin') diff --git a/checkin/settings.py b/checkin/settings.py index 6fa12a2..8d74770 100644 --- a/checkin/settings.py +++ b/checkin/settings.py @@ -31,6 +31,7 @@ ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ + 'bot.apps.BotConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', @@ -99,6 +100,7 @@ AUTH_PASSWORD_VALIDATORS = [ }, ] +AUTH_USER_MODEL = 'bot.User' # Internationalization # https://docs.djangoproject.com/en/4.1/topics/i18n/ diff --git a/checkin/urls.py b/checkin/urls.py index a173748..4f9cbe8 100644 --- a/checkin/urls.py +++ b/checkin/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 path, include urlpatterns = [ + path('bot/', include('bot.urls')), path('admin/', admin.site.urls), ] -- cgit v1.2.3