Spaces:
Running
on
Zero
Running
on
Zero
sd
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- babyagi/prompt.txt +2 -1
- controllers/gpt_enginner20240628171222 +1 -0
- controllers/gpt_enginner20240628174559 +1 -0
- controllers/gpt_enginner20240628175457 +1 -0
- controllers/gpt_enginner20240628175852 +1 -0
- controllers/gpt_enginner20240628180714 +1 -0
- controllers/gpt_enginner20240628181342 +1 -0
- controllers/gpt_enginner20240628181934 +1 -0
- controllers/gpt_enginner20240628191643 +1 -0
- controllers/gpt_enginner20240628192056 +1 -0
- controllers/gpt_enginner20240628202441 +1 -0
- controllers/gpt_enginner20240628210729 +1 -0
- controllers/gpt_enginner20240628214152 +1 -0
- controllers/gpt_enginner20240628214635 +1 -0
- controllers/gpt_enginner20240628214844 +1 -0
- controllers/gpt_enginner20240628222124 +1 -0
- controllers/gpt_enginner20240628224559 +1 -0
- controllers/gpt_enginner20240628224849 +1 -0
- controllers/gpt_enginner20240628225901 +1 -0
- controllers/gpt_enginner20240628232439 +1 -0
- controllers/gpt_enginner20240628232843 +1 -0
- controllers/gpt_enginner20240628234442 +1 -0
- controllers/gpt_enginner20240628234713 +1 -0
- controllers/gpt_enginner20240629000852 +1 -0
- controllers/gpt_enginner20240629002059 +1 -0
- controllers/gpt_enginner20240629003641 +1 -0
- controllers/gpt_enginner20240629005203 +1 -0
- controllers/gpt_enginner20240629005917 +1 -0
- controllers/gpt_enginner20240629012440 +1 -0
- controllers/gpt_enginner20240629013115 +1 -0
- controllers/gpt_enginner20240629013502 +1 -0
- controllers/gpt_enginner20240629013909 +1 -0
- workspace/gold_project/gold_app/__init__.py +0 -0
- workspace/gold_project/gold_app/admin.py +3 -0
- workspace/gold_project/gold_app/apps.py +6 -0
- workspace/gold_project/gold_app/migrations/__init__.py +0 -0
- workspace/gold_project/gold_app/models.py +3 -0
- workspace/gold_project/gold_app/tests.py +3 -0
- workspace/gold_project/gold_app/views.py +3 -0
- workspace/gold_project/gold_project/__init__.py +0 -0
- workspace/gold_project/gold_project/asgi.py +16 -0
- workspace/gold_project/gold_project/settings.py +123 -0
- workspace/gold_project/gold_project/urls.py +22 -0
- workspace/gold_project/gold_project/wsgi.py +16 -0
- workspace/gold_project/manage.py +22 -0
- workspace/kinkaimasu_project/kinkaimasu_project/__init__.py +0 -0
- workspace/kinkaimasu_project/kinkaimasu_project/asgi.py +16 -0
- workspace/kinkaimasu_project/kinkaimasu_project/settings.py +123 -0
- workspace/kinkaimasu_project/kinkaimasu_project/urls.py +22 -0
- workspace/kinkaimasu_project/kinkaimasu_project/wsgi.py +16 -0
babyagi/prompt.txt
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
|
|
|
|
1 |
+
お世話になります。
|
2 |
+
↑こちら如何でしょうか?の質問 についてチャットボットでよりよく対応するプランを日本語で作成して
|
controllers/gpt_enginner20240628171222
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 30b776f871fb2777ab25a50561a8ff31323e6f06
|
controllers/gpt_enginner20240628174559
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 00ecd7057c49c2fb923fb27dac893eea2c42f952
|
controllers/gpt_enginner20240628175457
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 755e9debd6c960a2e5758921428db4b4aa48b889
|
controllers/gpt_enginner20240628175852
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit f0e59e83be1463bf8c03fc0a65e27954d54e57d8
|
controllers/gpt_enginner20240628180714
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 0b5cb58d61d9229f4559ac9151e21e296bd571d2
|
controllers/gpt_enginner20240628181342
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit d99a26fe1e681f4df71f136cb299ce805769426e
|
controllers/gpt_enginner20240628181934
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 6eac7714b4af59cb9a328336cc5532c4f89e7347
|
controllers/gpt_enginner20240628191643
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 816bbef5e922e337d8d240e7a857ace856ead72c
|
controllers/gpt_enginner20240628192056
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit c3342fd6eb75052ea00aa2f3014474508a7cbe4b
|
controllers/gpt_enginner20240628202441
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit af25ddf3cc3da2484024cf4b3415539bced7040c
|
controllers/gpt_enginner20240628210729
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 96b9a25850fbe754cd87974bcf4aa14836c7be37
|
controllers/gpt_enginner20240628214152
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 7ea1e06527301591b8b3c1dc85f6a8e303f06526
|
controllers/gpt_enginner20240628214635
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 99aae9f7b14c8bc11a6ff01b8e4c564359811e18
|
controllers/gpt_enginner20240628214844
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 1f2447c70f25f4a533d1588d3eeede7beb748cfb
|
controllers/gpt_enginner20240628222124
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit bc7448cd8b54d75ddb6611ff68985f358695ff4c
|
controllers/gpt_enginner20240628224559
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 564684c8801ccd5235a08def25ab2b2ed9311d82
|
controllers/gpt_enginner20240628224849
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit dd8192838e7b52738c0d26203a826b56c11894d0
|
controllers/gpt_enginner20240628225901
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit c171066694c9ea932c0851cd99d9d1792c7a88e1
|
controllers/gpt_enginner20240628232439
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit c206d26b8bad0a3b3932dec37030cea936ec9837
|
controllers/gpt_enginner20240628232843
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit dc58c706c7e014ccc4b38841d8180ad2e4f815ac
|
controllers/gpt_enginner20240628234442
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 3294e5a53020fdd9cc3af6effcfa6e695e1a6308
|
controllers/gpt_enginner20240628234713
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 0d9f27bffacbd30b9b0ea37b6ee3c1dd1b655ac1
|
controllers/gpt_enginner20240629000852
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 0f3b58d7a2d1204cefd4e56239e9f8fd67dbaf06
|
controllers/gpt_enginner20240629002059
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 8e96bc7362498ed8cf8fc00fbec7915cc95fdb9b
|
controllers/gpt_enginner20240629003641
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 47ae0c1a7a53b7ba2c57e4c660625dc8f575f50e
|
controllers/gpt_enginner20240629005203
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit f908fcd23bd10843bad1983db8171703e6e3cc99
|
controllers/gpt_enginner20240629005917
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 8df126306cdfd4aff37619baa05b0b91532d982a
|
controllers/gpt_enginner20240629012440
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 0a30fcbf627b85cf545462177533a11a56764651
|
controllers/gpt_enginner20240629013115
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 73b0e9c8f09d26404d22d0a1810dd5646d69e2e7
|
controllers/gpt_enginner20240629013502
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 98ee3e716205ea39bc1dc2930295bbf9ef21ab29
|
controllers/gpt_enginner20240629013909
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 355b0817b850da56f16ac0b4cc3f8b090a81bbde
|
workspace/gold_project/gold_app/__init__.py
ADDED
File without changes
|
workspace/gold_project/gold_app/admin.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.contrib import admin
|
2 |
+
|
3 |
+
# Register your models here.
|
workspace/gold_project/gold_app/apps.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from django.apps import AppConfig
|
2 |
+
|
3 |
+
|
4 |
+
class GoldAppConfig(AppConfig):
|
5 |
+
default_auto_field = 'django.db.models.BigAutoField'
|
6 |
+
name = 'gold_app'
|
workspace/gold_project/gold_app/migrations/__init__.py
ADDED
File without changes
|
workspace/gold_project/gold_app/models.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.db import models
|
2 |
+
|
3 |
+
# Create your models here.
|
workspace/gold_project/gold_app/tests.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.test import TestCase
|
2 |
+
|
3 |
+
# Create your tests here.
|
workspace/gold_project/gold_app/views.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.shortcuts import render
|
2 |
+
|
3 |
+
# Create your views here.
|
workspace/gold_project/gold_project/__init__.py
ADDED
File without changes
|
workspace/gold_project/gold_project/asgi.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
ASGI config for gold_project project.
|
3 |
+
|
4 |
+
It exposes the ASGI callable as a module-level variable named ``application``.
|
5 |
+
|
6 |
+
For more information on this file, see
|
7 |
+
https://docs.djangoproject.com/en/5.0/howto/deployment/asgi/
|
8 |
+
"""
|
9 |
+
|
10 |
+
import os
|
11 |
+
|
12 |
+
from django.core.asgi import get_asgi_application
|
13 |
+
|
14 |
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gold_project.settings')
|
15 |
+
|
16 |
+
application = get_asgi_application()
|
workspace/gold_project/gold_project/settings.py
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Django settings for gold_project project.
|
3 |
+
|
4 |
+
Generated by 'django-admin startproject' using Django 5.0.4.
|
5 |
+
|
6 |
+
For more information on this file, see
|
7 |
+
https://docs.djangoproject.com/en/5.0/topics/settings/
|
8 |
+
|
9 |
+
For the full list of settings and their values, see
|
10 |
+
https://docs.djangoproject.com/en/5.0/ref/settings/
|
11 |
+
"""
|
12 |
+
|
13 |
+
from pathlib import Path
|
14 |
+
|
15 |
+
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
16 |
+
BASE_DIR = Path(__file__).resolve().parent.parent
|
17 |
+
|
18 |
+
|
19 |
+
# Quick-start development settings - unsuitable for production
|
20 |
+
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
|
21 |
+
|
22 |
+
# SECURITY WARNING: keep the secret key used in production secret!
|
23 |
+
SECRET_KEY = 'django-insecure-c355*$h#i!1y=%g3$7a0l6tdk(3vkj6-843^f*_+6o2-(%)&w)'
|
24 |
+
|
25 |
+
# SECURITY WARNING: don't run with debug turned on in production!
|
26 |
+
DEBUG = True
|
27 |
+
|
28 |
+
ALLOWED_HOSTS = []
|
29 |
+
|
30 |
+
|
31 |
+
# Application definition
|
32 |
+
|
33 |
+
INSTALLED_APPS = [
|
34 |
+
'django.contrib.admin',
|
35 |
+
'django.contrib.auth',
|
36 |
+
'django.contrib.contenttypes',
|
37 |
+
'django.contrib.sessions',
|
38 |
+
'django.contrib.messages',
|
39 |
+
'django.contrib.staticfiles',
|
40 |
+
]
|
41 |
+
|
42 |
+
MIDDLEWARE = [
|
43 |
+
'django.middleware.security.SecurityMiddleware',
|
44 |
+
'django.contrib.sessions.middleware.SessionMiddleware',
|
45 |
+
'django.middleware.common.CommonMiddleware',
|
46 |
+
'django.middleware.csrf.CsrfViewMiddleware',
|
47 |
+
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
48 |
+
'django.contrib.messages.middleware.MessageMiddleware',
|
49 |
+
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
50 |
+
]
|
51 |
+
|
52 |
+
ROOT_URLCONF = 'gold_project.urls'
|
53 |
+
|
54 |
+
TEMPLATES = [
|
55 |
+
{
|
56 |
+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
57 |
+
'DIRS': [],
|
58 |
+
'APP_DIRS': True,
|
59 |
+
'OPTIONS': {
|
60 |
+
'context_processors': [
|
61 |
+
'django.template.context_processors.debug',
|
62 |
+
'django.template.context_processors.request',
|
63 |
+
'django.contrib.auth.context_processors.auth',
|
64 |
+
'django.contrib.messages.context_processors.messages',
|
65 |
+
],
|
66 |
+
},
|
67 |
+
},
|
68 |
+
]
|
69 |
+
|
70 |
+
WSGI_APPLICATION = 'gold_project.wsgi.application'
|
71 |
+
|
72 |
+
|
73 |
+
# Database
|
74 |
+
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
|
75 |
+
|
76 |
+
DATABASES = {
|
77 |
+
'default': {
|
78 |
+
'ENGINE': 'django.db.backends.sqlite3',
|
79 |
+
'NAME': BASE_DIR / 'db.sqlite3',
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
+
|
84 |
+
# Password validation
|
85 |
+
# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators
|
86 |
+
|
87 |
+
AUTH_PASSWORD_VALIDATORS = [
|
88 |
+
{
|
89 |
+
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
90 |
+
},
|
91 |
+
{
|
92 |
+
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
|
93 |
+
},
|
94 |
+
{
|
95 |
+
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
|
96 |
+
},
|
97 |
+
{
|
98 |
+
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
99 |
+
},
|
100 |
+
]
|
101 |
+
|
102 |
+
|
103 |
+
# Internationalization
|
104 |
+
# https://docs.djangoproject.com/en/5.0/topics/i18n/
|
105 |
+
|
106 |
+
LANGUAGE_CODE = 'en-us'
|
107 |
+
|
108 |
+
TIME_ZONE = 'UTC'
|
109 |
+
|
110 |
+
USE_I18N = True
|
111 |
+
|
112 |
+
USE_TZ = True
|
113 |
+
|
114 |
+
|
115 |
+
# Static files (CSS, JavaScript, Images)
|
116 |
+
# https://docs.djangoproject.com/en/5.0/howto/static-files/
|
117 |
+
|
118 |
+
STATIC_URL = 'static/'
|
119 |
+
|
120 |
+
# Default primary key field type
|
121 |
+
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
|
122 |
+
|
123 |
+
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
workspace/gold_project/gold_project/urls.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
URL configuration for gold_project project.
|
3 |
+
|
4 |
+
The `urlpatterns` list routes URLs to views. For more information please see:
|
5 |
+
https://docs.djangoproject.com/en/5.0/topics/http/urls/
|
6 |
+
Examples:
|
7 |
+
Function views
|
8 |
+
1. Add an import: from my_app import views
|
9 |
+
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
10 |
+
Class-based views
|
11 |
+
1. Add an import: from other_app.views import Home
|
12 |
+
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
13 |
+
Including another URLconf
|
14 |
+
1. Import the include() function: from django.urls import include, path
|
15 |
+
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
16 |
+
"""
|
17 |
+
from django.contrib import admin
|
18 |
+
from django.urls import path
|
19 |
+
|
20 |
+
urlpatterns = [
|
21 |
+
path('admin/', admin.site.urls),
|
22 |
+
]
|
workspace/gold_project/gold_project/wsgi.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
WSGI config for gold_project project.
|
3 |
+
|
4 |
+
It exposes the WSGI callable as a module-level variable named ``application``.
|
5 |
+
|
6 |
+
For more information on this file, see
|
7 |
+
https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/
|
8 |
+
"""
|
9 |
+
|
10 |
+
import os
|
11 |
+
|
12 |
+
from django.core.wsgi import get_wsgi_application
|
13 |
+
|
14 |
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gold_project.settings')
|
15 |
+
|
16 |
+
application = get_wsgi_application()
|
workspace/gold_project/manage.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python
|
2 |
+
"""Django's command-line utility for administrative tasks."""
|
3 |
+
import os
|
4 |
+
import sys
|
5 |
+
|
6 |
+
|
7 |
+
def main():
|
8 |
+
"""Run administrative tasks."""
|
9 |
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gold_project.settings')
|
10 |
+
try:
|
11 |
+
from django.core.management import execute_from_command_line
|
12 |
+
except ImportError as exc:
|
13 |
+
raise ImportError(
|
14 |
+
"Couldn't import Django. Are you sure it's installed and "
|
15 |
+
"available on your PYTHONPATH environment variable? Did you "
|
16 |
+
"forget to activate a virtual environment?"
|
17 |
+
) from exc
|
18 |
+
execute_from_command_line(sys.argv)
|
19 |
+
|
20 |
+
|
21 |
+
if __name__ == '__main__':
|
22 |
+
main()
|
workspace/kinkaimasu_project/kinkaimasu_project/__init__.py
ADDED
File without changes
|
workspace/kinkaimasu_project/kinkaimasu_project/asgi.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
ASGI config for kinkaimasu_project project.
|
3 |
+
|
4 |
+
It exposes the ASGI callable as a module-level variable named ``application``.
|
5 |
+
|
6 |
+
For more information on this file, see
|
7 |
+
https://docs.djangoproject.com/en/5.0/howto/deployment/asgi/
|
8 |
+
"""
|
9 |
+
|
10 |
+
import os
|
11 |
+
|
12 |
+
from django.core.asgi import get_asgi_application
|
13 |
+
|
14 |
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'kinkaimasu_project.settings')
|
15 |
+
|
16 |
+
application = get_asgi_application()
|
workspace/kinkaimasu_project/kinkaimasu_project/settings.py
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Django settings for kinkaimasu_project project.
|
3 |
+
|
4 |
+
Generated by 'django-admin startproject' using Django 5.0.4.
|
5 |
+
|
6 |
+
For more information on this file, see
|
7 |
+
https://docs.djangoproject.com/en/5.0/topics/settings/
|
8 |
+
|
9 |
+
For the full list of settings and their values, see
|
10 |
+
https://docs.djangoproject.com/en/5.0/ref/settings/
|
11 |
+
"""
|
12 |
+
|
13 |
+
from pathlib import Path
|
14 |
+
|
15 |
+
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
16 |
+
BASE_DIR = Path(__file__).resolve().parent.parent
|
17 |
+
|
18 |
+
|
19 |
+
# Quick-start development settings - unsuitable for production
|
20 |
+
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
|
21 |
+
|
22 |
+
# SECURITY WARNING: keep the secret key used in production secret!
|
23 |
+
SECRET_KEY = 'django-insecure-qffm#!ge7n*-a_u7(yv_t6&^2zj)+pp&ku7bz&otufl-kcnwha'
|
24 |
+
|
25 |
+
# SECURITY WARNING: don't run with debug turned on in production!
|
26 |
+
DEBUG = True
|
27 |
+
|
28 |
+
ALLOWED_HOSTS = []
|
29 |
+
|
30 |
+
|
31 |
+
# Application definition
|
32 |
+
|
33 |
+
INSTALLED_APPS = [
|
34 |
+
'django.contrib.admin',
|
35 |
+
'django.contrib.auth',
|
36 |
+
'django.contrib.contenttypes',
|
37 |
+
'django.contrib.sessions',
|
38 |
+
'django.contrib.messages',
|
39 |
+
'django.contrib.staticfiles',
|
40 |
+
]
|
41 |
+
|
42 |
+
MIDDLEWARE = [
|
43 |
+
'django.middleware.security.SecurityMiddleware',
|
44 |
+
'django.contrib.sessions.middleware.SessionMiddleware',
|
45 |
+
'django.middleware.common.CommonMiddleware',
|
46 |
+
'django.middleware.csrf.CsrfViewMiddleware',
|
47 |
+
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
48 |
+
'django.contrib.messages.middleware.MessageMiddleware',
|
49 |
+
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
50 |
+
]
|
51 |
+
|
52 |
+
ROOT_URLCONF = 'kinkaimasu_project.urls'
|
53 |
+
|
54 |
+
TEMPLATES = [
|
55 |
+
{
|
56 |
+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
57 |
+
'DIRS': [],
|
58 |
+
'APP_DIRS': True,
|
59 |
+
'OPTIONS': {
|
60 |
+
'context_processors': [
|
61 |
+
'django.template.context_processors.debug',
|
62 |
+
'django.template.context_processors.request',
|
63 |
+
'django.contrib.auth.context_processors.auth',
|
64 |
+
'django.contrib.messages.context_processors.messages',
|
65 |
+
],
|
66 |
+
},
|
67 |
+
},
|
68 |
+
]
|
69 |
+
|
70 |
+
WSGI_APPLICATION = 'kinkaimasu_project.wsgi.application'
|
71 |
+
|
72 |
+
|
73 |
+
# Database
|
74 |
+
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
|
75 |
+
|
76 |
+
DATABASES = {
|
77 |
+
'default': {
|
78 |
+
'ENGINE': 'django.db.backends.sqlite3',
|
79 |
+
'NAME': BASE_DIR / 'db.sqlite3',
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
+
|
84 |
+
# Password validation
|
85 |
+
# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators
|
86 |
+
|
87 |
+
AUTH_PASSWORD_VALIDATORS = [
|
88 |
+
{
|
89 |
+
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
90 |
+
},
|
91 |
+
{
|
92 |
+
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
|
93 |
+
},
|
94 |
+
{
|
95 |
+
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
|
96 |
+
},
|
97 |
+
{
|
98 |
+
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
99 |
+
},
|
100 |
+
]
|
101 |
+
|
102 |
+
|
103 |
+
# Internationalization
|
104 |
+
# https://docs.djangoproject.com/en/5.0/topics/i18n/
|
105 |
+
|
106 |
+
LANGUAGE_CODE = 'en-us'
|
107 |
+
|
108 |
+
TIME_ZONE = 'UTC'
|
109 |
+
|
110 |
+
USE_I18N = True
|
111 |
+
|
112 |
+
USE_TZ = True
|
113 |
+
|
114 |
+
|
115 |
+
# Static files (CSS, JavaScript, Images)
|
116 |
+
# https://docs.djangoproject.com/en/5.0/howto/static-files/
|
117 |
+
|
118 |
+
STATIC_URL = 'static/'
|
119 |
+
|
120 |
+
# Default primary key field type
|
121 |
+
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
|
122 |
+
|
123 |
+
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
workspace/kinkaimasu_project/kinkaimasu_project/urls.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
URL configuration for kinkaimasu_project project.
|
3 |
+
|
4 |
+
The `urlpatterns` list routes URLs to views. For more information please see:
|
5 |
+
https://docs.djangoproject.com/en/5.0/topics/http/urls/
|
6 |
+
Examples:
|
7 |
+
Function views
|
8 |
+
1. Add an import: from my_app import views
|
9 |
+
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
10 |
+
Class-based views
|
11 |
+
1. Add an import: from other_app.views import Home
|
12 |
+
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
13 |
+
Including another URLconf
|
14 |
+
1. Import the include() function: from django.urls import include, path
|
15 |
+
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
16 |
+
"""
|
17 |
+
from django.contrib import admin
|
18 |
+
from django.urls import path
|
19 |
+
|
20 |
+
urlpatterns = [
|
21 |
+
path('admin/', admin.site.urls),
|
22 |
+
]
|
workspace/kinkaimasu_project/kinkaimasu_project/wsgi.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
WSGI config for kinkaimasu_project project.
|
3 |
+
|
4 |
+
It exposes the WSGI callable as a module-level variable named ``application``.
|
5 |
+
|
6 |
+
For more information on this file, see
|
7 |
+
https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/
|
8 |
+
"""
|
9 |
+
|
10 |
+
import os
|
11 |
+
|
12 |
+
from django.core.wsgi import get_wsgi_application
|
13 |
+
|
14 |
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'kinkaimasu_project.settings')
|
15 |
+
|
16 |
+
application = get_wsgi_application()
|