fda
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- babyagi/prompt.txt +1 -1
- buyback/__init__.py +0 -0
- buyback/admin.py +3 -0
- buyback/apps.py +6 -0
- buyback/migrations/__init__.py +0 -0
- buyback/models.py +3 -0
- buyback/tests.py +3 -0
- buyback/views.py +3 -0
- controllers/gpt_enginner20240702053156 +1 -0
- controllers/gpt_enginner20240702053453 +1 -0
- controllers/gpt_enginner20240702053641/prompt +60 -0
- controllers/gpt_enginner20240702055428 +1 -0
- controllers/gpt_enginner20240702055646 +1 -0
- controllers/gpt_enginner20240702055936 +1 -0
- controllers/gpt_enginner20240702060345 +1 -0
- controllers/gpt_enginner20240702060547 +1 -0
- controllers/gpt_enginner20240702060819 +1 -0
- controllers/gpt_enginner20240702061417 +1 -0
- controllers/gpt_enginner20240702061612 +1 -0
- controllers/gpt_enginner20240702061801 +1 -0
- controllers/gpt_enginner20240702062018 +1 -0
- controllers/gpt_enginner20240702062719 +1 -0
- routers/webhook.py +3 -2
- workspace/customer_support/__init__.py +0 -0
- workspace/customer_support/admin.py +3 -0
- workspace/customer_support/apps.py +6 -0
- workspace/customer_support/migrations/__init__.py +0 -0
- workspace/customer_support/models.py +3 -0
- workspace/customer_support/tests.py +3 -0
- workspace/customer_support/views.py +3 -0
- workspace/workspace/customer_support/__init__.py +0 -0
- workspace/workspace/customer_support/admin.py +3 -0
- workspace/workspace/customer_support/apps.py +6 -0
- workspace/workspace/customer_support/migrations/__init__.py +0 -0
- workspace/workspace/customer_support/models.py +3 -0
- workspace/workspace/customer_support/tests.py +3 -0
- workspace/workspace/customer_support/views.py +3 -0
- workspace/workspace/workspace/main.py +0 -0
- workspace/workspace/workspace/workspace/refasta/core/__init__.py +0 -0
- workspace/workspace/workspace/workspace/refasta/core/admin.py +3 -0
- workspace/workspace/workspace/workspace/refasta/core/apps.py +6 -0
- workspace/workspace/workspace/workspace/refasta/core/migrations/__init__.py +0 -0
- workspace/workspace/workspace/workspace/refasta/core/models.py +3 -0
- workspace/workspace/workspace/workspace/refasta/core/tests.py +3 -0
- workspace/workspace/workspace/workspace/refasta/core/views.py +3 -0
- workspace/workspace/workspace/workspace/refasta/manage.py +22 -0
- workspace/workspace/workspace/workspace/refasta/refasta/__init__.py +0 -0
- workspace/workspace/workspace/workspace/refasta/refasta/asgi.py +16 -0
- workspace/workspace/workspace/workspace/refasta/refasta/settings.py +123 -0
- workspace/workspace/workspace/workspace/refasta/refasta/urls.py +22 -0
babyagi/prompt.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
|
|
1 |
+
【リッチメニュー】本日の金価格の質問 についてチャットボットでよりよく対応するプランを日本語で作成して
|
buyback/__init__.py
ADDED
File without changes
|
buyback/admin.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.contrib import admin
|
2 |
+
|
3 |
+
# Register your models here.
|
buyback/apps.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from django.apps import AppConfig
|
2 |
+
|
3 |
+
|
4 |
+
class BuybackConfig(AppConfig):
|
5 |
+
default_auto_field = 'django.db.models.BigAutoField'
|
6 |
+
name = 'buyback'
|
buyback/migrations/__init__.py
ADDED
File without changes
|
buyback/models.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.db import models
|
2 |
+
|
3 |
+
# Create your models here.
|
buyback/tests.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.test import TestCase
|
2 |
+
|
3 |
+
# Create your tests here.
|
buyback/views.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.shortcuts import render
|
2 |
+
|
3 |
+
# Create your views here.
|
controllers/gpt_enginner20240702053156
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 92962db640be3207bb81494b7ae210dbca14fb9b
|
controllers/gpt_enginner20240702053453
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 9c366b7aa7210187b2d0d82bdef253223cde1cfe
|
controllers/gpt_enginner20240702053641/prompt
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
下記の質問に対応するコードをdjangoでアプリを作成 プロジェクトはいりません
|
3 |
+
fastapiでrouter部分を作成 組み込みはメイン部分でします
|
4 |
+
フロントエンドをgradioで作成
|
5 |
+
#google apps script frontend
|
6 |
+
googleappsscript doGet でのgradioの表示処理を作成 google.script.runで関数は呼び出し
|
7 |
+
#google apps script backend
|
8 |
+
frontendからの呼び出し用のバックエンドスクリプト
|
9 |
+
仕様書の作成
|
10 |
+
PlantUMLでシーケンス図の作成
|
11 |
+
Markdownでのプログラム殺名
|
12 |
+
#下記参考にAPIも作成しておいて
|
13 |
+
action insert list edit update でCRUDがかわる
|
14 |
+
同じようにGASのAPIも作成しておいて
|
15 |
+
|
16 |
+
def create_vector():
|
17 |
+
inputs = tokenizer(result, return_tensors="pt", max_length=512, truncation=True)
|
18 |
+
outputs = model(**inputs)
|
19 |
+
# [CLS]トークンの出力を取得
|
20 |
+
embeddings = outputs.last_hidden_state[:,0,:].squeeze().detach().cpu().numpy().tolist()
|
21 |
+
print(embeddings)
|
22 |
+
import requests
|
23 |
+
|
24 |
+
url = "https://kenken999-php.hf.space/api/v1.php"
|
25 |
+
|
26 |
+
payload = "model_name={embeddings}&vector_text={result}&table=products&action=insert""
|
27 |
+
headers = {
|
28 |
+
'X-Auth-Token': 'admin',
|
29 |
+
'Content-Type': 'application/x-www-form-urlencoded',
|
30 |
+
'Cookie': 'runnerSession=muvclb78zpsdjbm7y9c3; pD1lszvk6ratOZhmmgvkp=13767810ebf0782b0b51bf72dedb63b3'
|
31 |
+
}
|
32 |
+
|
33 |
+
response = requests.request("POST", url, headers=headers, data=payload)
|
34 |
+
|
35 |
+
print(response.text)
|
36 |
+
return True
|
37 |
+
|
38 |
+
下記の質問 作成対応内容
|
39 |
+
|
40 |
+
お問い合わせありがとうございます。
|
41 |
+
|
42 |
+
【リッチメニュー】本日の金価格については、以下のURLをご覧ください。
|
43 |
+
|
44 |
+
https://www.youtube.com/@refastaofficial/search?query=%E3%82%AA%E3%83%B3%E3%83%A9%E3%82%A4%E3%83%B3%E8%B3%87%E6%96%99%E3%81%AE%E3%82%AA%E3%83%B3%E3%83%A9%E3%82%A4%E3%83%B3%E8%B3%87%E6%96%99
|
45 |
+
|
46 |
+
本日の金価格について、詳しくは、以下のQ&Aをご覧ください。
|
47 |
+
|
48 |
+
Q: 本日の金価格は何ですか?
|
49 |
+
A: 本日の金価格は、現在の市場価格に基づいて計算されます。
|
50 |
+
|
51 |
+
Q: 金価格はどのように変動しますか?
|
52 |
+
A: 金価格は、世界的なgold marketの動向や為替の影響を受けて変動します。
|
53 |
+
|
54 |
+
Q: リファスタでの金買取価格はどう計算されますか?
|
55 |
+
A: リファスタでの金買取価格は、当日の金価格に基づいて計算されます。
|
56 |
+
|
57 |
+
商品検索のURLは、以下の通りです。
|
58 |
+
https://kenken999-php.hf.space/zendesk__dataszz_list.php?qs=金価格
|
59 |
+
|
60 |
+
以上の情報を参考にして、金買取に関するお問い合わせは、当店の査定人にご連絡ください。
|
controllers/gpt_enginner20240702055428
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit a509afb0663e03ee1e780a21e8756c3615675414
|
controllers/gpt_enginner20240702055646
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit a979a7983235561a880339dda5f13ecd279bb883
|
controllers/gpt_enginner20240702055936
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 67d0a01cd20cc6c41f9ff0d7fe132473c8e67c1c
|
controllers/gpt_enginner20240702060345
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 79ededc6af40f1ee60112667bd7e7e41097d82fb
|
controllers/gpt_enginner20240702060547
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit a4d84425ef4c4b527b81b3dfa209399cc86d92e2
|
controllers/gpt_enginner20240702060819
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 25178ae6cf60f5f183578da0e66e462f77ea34fc
|
controllers/gpt_enginner20240702061417
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 332e21c9f9e6617acf70345b14c36858f09508e3
|
controllers/gpt_enginner20240702061612
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 23e3f812a5e4f497c3e479cefd7793c6b0161cda
|
controllers/gpt_enginner20240702061801
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit e5d6fcac2f29571c69e406532987a4a8087f2e5b
|
controllers/gpt_enginner20240702062018
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 65d311d28c75662ff69c78e95e5e7808bbafe9bf
|
controllers/gpt_enginner20240702062719
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 654d0deee0fe2942e79d97712ac251e360eb25c6
|
routers/webhook.py
CHANGED
@@ -104,8 +104,9 @@ async def webhook(request: Request):
|
|
104 |
<b>質問内容:</b>
|
105 |
{text}
|
106 |
|
107 |
-
<b>ラインへ返信token</b>
|
108 |
-
|
|
|
109 |
"""
|
110 |
#<b>Webhook Event ID:</b> {webhook_event_id}<br>
|
111 |
#<b>Delivery Context:</b> {json.dumps(delivery_context)}<br>
|
|
|
104 |
<b>質問内容:</b>
|
105 |
{text}
|
106 |
|
107 |
+
<b>ラインへ返信token</b>
|
108 |
+
{reply_token}
|
109 |
+
GoogleChatから返信 /line_replay でチャットから返信
|
110 |
"""
|
111 |
#<b>Webhook Event ID:</b> {webhook_event_id}<br>
|
112 |
#<b>Delivery Context:</b> {json.dumps(delivery_context)}<br>
|
workspace/customer_support/__init__.py
ADDED
File without changes
|
workspace/customer_support/admin.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.contrib import admin
|
2 |
+
|
3 |
+
# Register your models here.
|
workspace/customer_support/apps.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from django.apps import AppConfig
|
2 |
+
|
3 |
+
|
4 |
+
class CustomerSupportConfig(AppConfig):
|
5 |
+
default_auto_field = 'django.db.models.BigAutoField'
|
6 |
+
name = 'customer_support'
|
workspace/customer_support/migrations/__init__.py
ADDED
File without changes
|
workspace/customer_support/models.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.db import models
|
2 |
+
|
3 |
+
# Create your models here.
|
workspace/customer_support/tests.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.test import TestCase
|
2 |
+
|
3 |
+
# Create your tests here.
|
workspace/customer_support/views.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.shortcuts import render
|
2 |
+
|
3 |
+
# Create your views here.
|
workspace/workspace/customer_support/__init__.py
ADDED
File without changes
|
workspace/workspace/customer_support/admin.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.contrib import admin
|
2 |
+
|
3 |
+
# Register your models here.
|
workspace/workspace/customer_support/apps.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from django.apps import AppConfig
|
2 |
+
|
3 |
+
|
4 |
+
class CustomerSupportConfig(AppConfig):
|
5 |
+
default_auto_field = 'django.db.models.BigAutoField'
|
6 |
+
name = 'customer_support'
|
workspace/workspace/customer_support/migrations/__init__.py
ADDED
File without changes
|
workspace/workspace/customer_support/models.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.db import models
|
2 |
+
|
3 |
+
# Create your models here.
|
workspace/workspace/customer_support/tests.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.test import TestCase
|
2 |
+
|
3 |
+
# Create your tests here.
|
workspace/workspace/customer_support/views.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.shortcuts import render
|
2 |
+
|
3 |
+
# Create your views here.
|
workspace/workspace/workspace/main.py
ADDED
File without changes
|
workspace/workspace/workspace/workspace/refasta/core/__init__.py
ADDED
File without changes
|
workspace/workspace/workspace/workspace/refasta/core/admin.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.contrib import admin
|
2 |
+
|
3 |
+
# Register your models here.
|
workspace/workspace/workspace/workspace/refasta/core/apps.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from django.apps import AppConfig
|
2 |
+
|
3 |
+
|
4 |
+
class CoreConfig(AppConfig):
|
5 |
+
default_auto_field = 'django.db.models.BigAutoField'
|
6 |
+
name = 'core'
|
workspace/workspace/workspace/workspace/refasta/core/migrations/__init__.py
ADDED
File without changes
|
workspace/workspace/workspace/workspace/refasta/core/models.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.db import models
|
2 |
+
|
3 |
+
# Create your models here.
|
workspace/workspace/workspace/workspace/refasta/core/tests.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.test import TestCase
|
2 |
+
|
3 |
+
# Create your tests here.
|
workspace/workspace/workspace/workspace/refasta/core/views.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.shortcuts import render
|
2 |
+
|
3 |
+
# Create your views here.
|
workspace/workspace/workspace/workspace/refasta/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', 'refasta.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/workspace/workspace/workspace/refasta/refasta/__init__.py
ADDED
File without changes
|
workspace/workspace/workspace/workspace/refasta/refasta/asgi.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
ASGI config for refasta 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', 'refasta.settings')
|
15 |
+
|
16 |
+
application = get_asgi_application()
|
workspace/workspace/workspace/workspace/refasta/refasta/settings.py
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Django settings for refasta 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-w!=415@*yeny$6)0v=&)o&2t^lwy3-0us@byd-vdvt1hfm&i&3'
|
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 = 'refasta.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 = 'refasta.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/workspace/workspace/workspace/refasta/refasta/urls.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
URL configuration for refasta 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 |
+
]
|