diff --git a/babyagi/prompt.txt b/babyagi/prompt.txt index ff7a51ccb22a75e59c23c1178fade095d0c1d532..932cfeaa043edf01a8a7355134e964c395cfc13f 100644 --- a/babyagi/prompt.txt +++ b/babyagi/prompt.txt @@ -1 +1 @@ -買取方法の質問 についてチャットボットでよりよく対応するプランを日本語で作成して \ No newline at end of file +【リッチメニュー】本日の金価格の質問 についてチャットボットでよりよく対応するプランを日本語で作成して \ No newline at end of file diff --git a/buyback/__init__.py b/buyback/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/buyback/admin.py b/buyback/admin.py new file mode 100644 index 0000000000000000000000000000000000000000..8c38f3f3dad51e4585f3984282c2a4bec5349c1e --- /dev/null +++ b/buyback/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/buyback/apps.py b/buyback/apps.py new file mode 100644 index 0000000000000000000000000000000000000000..77b013ccbd9bf5e941993de2f31fbdfccd40f1d7 --- /dev/null +++ b/buyback/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class BuybackConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'buyback' diff --git a/buyback/migrations/__init__.py b/buyback/migrations/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/buyback/models.py b/buyback/models.py new file mode 100644 index 0000000000000000000000000000000000000000..71a836239075aa6e6e4ecb700e9c42c95c022d91 --- /dev/null +++ b/buyback/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/buyback/tests.py b/buyback/tests.py new file mode 100644 index 0000000000000000000000000000000000000000..7ce503c2dd97ba78597f6ff6e4393132753573f6 --- /dev/null +++ b/buyback/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/buyback/views.py b/buyback/views.py new file mode 100644 index 0000000000000000000000000000000000000000..91ea44a218fbd2f408430959283f0419c921093e --- /dev/null +++ b/buyback/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/controllers/gpt_enginner20240702053156 b/controllers/gpt_enginner20240702053156 new file mode 160000 index 0000000000000000000000000000000000000000..92962db640be3207bb81494b7ae210dbca14fb9b --- /dev/null +++ b/controllers/gpt_enginner20240702053156 @@ -0,0 +1 @@ +Subproject commit 92962db640be3207bb81494b7ae210dbca14fb9b diff --git a/controllers/gpt_enginner20240702053453 b/controllers/gpt_enginner20240702053453 new file mode 160000 index 0000000000000000000000000000000000000000..9c366b7aa7210187b2d0d82bdef253223cde1cfe --- /dev/null +++ b/controllers/gpt_enginner20240702053453 @@ -0,0 +1 @@ +Subproject commit 9c366b7aa7210187b2d0d82bdef253223cde1cfe diff --git a/controllers/gpt_enginner20240702053641/prompt b/controllers/gpt_enginner20240702053641/prompt new file mode 100644 index 0000000000000000000000000000000000000000..b87941ee9f5e3fa4509b5ae0211041b09cf2b73b --- /dev/null +++ b/controllers/gpt_enginner20240702053641/prompt @@ -0,0 +1,60 @@ + +下記の質問に対応するコードをdjangoでアプリを作成 プロジェクトはいりません +fastapiでrouter部分を作成 組み込みはメイン部分でします +フロントエンドをgradioで作成 +#google apps script frontend + googleappsscript doGet でのgradioの表示処理を作成 google.script.runで関数は呼び出し +#google apps script backend + frontendからの呼び出し用のバックエンドスクリプト +仕様書の作成 +PlantUMLでシーケンス図の作成 +Markdownでのプログラム殺名 +#下記参考にAPIも作成しておいて +action insert list edit update でCRUDがかわる +同じようにGASのAPIも作成しておいて + +def create_vector(): + inputs = tokenizer(result, return_tensors="pt", max_length=512, truncation=True) + outputs = model(**inputs) + # [CLS]トークンの出力を取得 + embeddings = outputs.last_hidden_state[:,0,:].squeeze().detach().cpu().numpy().tolist() + print(embeddings) + import requests + + url = "https://kenken999-php.hf.space/api/v1.php" + + payload = "model_name={embeddings}&vector_text={result}&table=products&action=insert"" + headers = { + 'X-Auth-Token': 'admin', + 'Content-Type': 'application/x-www-form-urlencoded', + 'Cookie': 'runnerSession=muvclb78zpsdjbm7y9c3; pD1lszvk6ratOZhmmgvkp=13767810ebf0782b0b51bf72dedb63b3' + } + + response = requests.request("POST", url, headers=headers, data=payload) + + print(response.text) + return True + +下記の質問 作成対応内容 + +お問い合わせありがとうございます。 + +【リッチメニュー】本日の金価格については、以下のURLをご覧ください。 + +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 + +本日の金価格について、詳しくは、以下のQ&Aをご覧ください。 + +Q: 本日の金価格は何ですか? +A: 本日の金価格は、現在の市場価格に基づいて計算されます。 + +Q: 金価格はどのように変動しますか? +A: 金価格は、世界的なgold marketの動向や為替の影響を受けて変動します。 + +Q: リファスタでの金買取価格はどう計算されますか? +A: リファスタでの金買取価格は、当日の金価格に基づいて計算されます。 + +商品検索のURLは、以下の通りです。 +https://kenken999-php.hf.space/zendesk__dataszz_list.php?qs=金価格 + +以上の情報を参考にして、金買取に関するお問い合わせは、当店の査定人にご連絡ください。 \ No newline at end of file diff --git a/controllers/gpt_enginner20240702055428 b/controllers/gpt_enginner20240702055428 new file mode 160000 index 0000000000000000000000000000000000000000..a509afb0663e03ee1e780a21e8756c3615675414 --- /dev/null +++ b/controllers/gpt_enginner20240702055428 @@ -0,0 +1 @@ +Subproject commit a509afb0663e03ee1e780a21e8756c3615675414 diff --git a/controllers/gpt_enginner20240702055646 b/controllers/gpt_enginner20240702055646 new file mode 160000 index 0000000000000000000000000000000000000000..a979a7983235561a880339dda5f13ecd279bb883 --- /dev/null +++ b/controllers/gpt_enginner20240702055646 @@ -0,0 +1 @@ +Subproject commit a979a7983235561a880339dda5f13ecd279bb883 diff --git a/controllers/gpt_enginner20240702055936 b/controllers/gpt_enginner20240702055936 new file mode 160000 index 0000000000000000000000000000000000000000..67d0a01cd20cc6c41f9ff0d7fe132473c8e67c1c --- /dev/null +++ b/controllers/gpt_enginner20240702055936 @@ -0,0 +1 @@ +Subproject commit 67d0a01cd20cc6c41f9ff0d7fe132473c8e67c1c diff --git a/controllers/gpt_enginner20240702060345 b/controllers/gpt_enginner20240702060345 new file mode 160000 index 0000000000000000000000000000000000000000..79ededc6af40f1ee60112667bd7e7e41097d82fb --- /dev/null +++ b/controllers/gpt_enginner20240702060345 @@ -0,0 +1 @@ +Subproject commit 79ededc6af40f1ee60112667bd7e7e41097d82fb diff --git a/controllers/gpt_enginner20240702060547 b/controllers/gpt_enginner20240702060547 new file mode 160000 index 0000000000000000000000000000000000000000..a4d84425ef4c4b527b81b3dfa209399cc86d92e2 --- /dev/null +++ b/controllers/gpt_enginner20240702060547 @@ -0,0 +1 @@ +Subproject commit a4d84425ef4c4b527b81b3dfa209399cc86d92e2 diff --git a/controllers/gpt_enginner20240702060819 b/controllers/gpt_enginner20240702060819 new file mode 160000 index 0000000000000000000000000000000000000000..25178ae6cf60f5f183578da0e66e462f77ea34fc --- /dev/null +++ b/controllers/gpt_enginner20240702060819 @@ -0,0 +1 @@ +Subproject commit 25178ae6cf60f5f183578da0e66e462f77ea34fc diff --git a/controllers/gpt_enginner20240702061417 b/controllers/gpt_enginner20240702061417 new file mode 160000 index 0000000000000000000000000000000000000000..332e21c9f9e6617acf70345b14c36858f09508e3 --- /dev/null +++ b/controllers/gpt_enginner20240702061417 @@ -0,0 +1 @@ +Subproject commit 332e21c9f9e6617acf70345b14c36858f09508e3 diff --git a/controllers/gpt_enginner20240702061612 b/controllers/gpt_enginner20240702061612 new file mode 160000 index 0000000000000000000000000000000000000000..23e3f812a5e4f497c3e479cefd7793c6b0161cda --- /dev/null +++ b/controllers/gpt_enginner20240702061612 @@ -0,0 +1 @@ +Subproject commit 23e3f812a5e4f497c3e479cefd7793c6b0161cda diff --git a/controllers/gpt_enginner20240702061801 b/controllers/gpt_enginner20240702061801 new file mode 160000 index 0000000000000000000000000000000000000000..e5d6fcac2f29571c69e406532987a4a8087f2e5b --- /dev/null +++ b/controllers/gpt_enginner20240702061801 @@ -0,0 +1 @@ +Subproject commit e5d6fcac2f29571c69e406532987a4a8087f2e5b diff --git a/controllers/gpt_enginner20240702062018 b/controllers/gpt_enginner20240702062018 new file mode 160000 index 0000000000000000000000000000000000000000..65d311d28c75662ff69c78e95e5e7808bbafe9bf --- /dev/null +++ b/controllers/gpt_enginner20240702062018 @@ -0,0 +1 @@ +Subproject commit 65d311d28c75662ff69c78e95e5e7808bbafe9bf diff --git a/controllers/gpt_enginner20240702062719 b/controllers/gpt_enginner20240702062719 new file mode 160000 index 0000000000000000000000000000000000000000..654d0deee0fe2942e79d97712ac251e360eb25c6 --- /dev/null +++ b/controllers/gpt_enginner20240702062719 @@ -0,0 +1 @@ +Subproject commit 654d0deee0fe2942e79d97712ac251e360eb25c6 diff --git a/routers/webhook.py b/routers/webhook.py index d2eee10adddf105edb43c5906a75bbaa132b343a..c8a9cc00d80b4d15ddfface054d481ace0168e16 100644 --- a/routers/webhook.py +++ b/routers/webhook.py @@ -104,8 +104,9 @@ async def webhook(request: Request): 質問内容: {text} - ラインへ返信token {reply_token} - /line_replay でチャットから返信 + ラインへ返信token + {reply_token} + GoogleChatから返信 /line_replay でチャットから返信 """ #Webhook Event ID: {webhook_event_id}
#Delivery Context: {json.dumps(delivery_context)}
diff --git a/workspace/customer_support/__init__.py b/workspace/customer_support/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/customer_support/admin.py b/workspace/customer_support/admin.py new file mode 100644 index 0000000000000000000000000000000000000000..8c38f3f3dad51e4585f3984282c2a4bec5349c1e --- /dev/null +++ b/workspace/customer_support/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/workspace/customer_support/apps.py b/workspace/customer_support/apps.py new file mode 100644 index 0000000000000000000000000000000000000000..ae5106b9dedbb44b799bd4c0830b4a9fff2b7c68 --- /dev/null +++ b/workspace/customer_support/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class CustomerSupportConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'customer_support' diff --git a/workspace/customer_support/migrations/__init__.py b/workspace/customer_support/migrations/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/customer_support/models.py b/workspace/customer_support/models.py new file mode 100644 index 0000000000000000000000000000000000000000..71a836239075aa6e6e4ecb700e9c42c95c022d91 --- /dev/null +++ b/workspace/customer_support/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/workspace/customer_support/tests.py b/workspace/customer_support/tests.py new file mode 100644 index 0000000000000000000000000000000000000000..7ce503c2dd97ba78597f6ff6e4393132753573f6 --- /dev/null +++ b/workspace/customer_support/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/workspace/customer_support/views.py b/workspace/customer_support/views.py new file mode 100644 index 0000000000000000000000000000000000000000..91ea44a218fbd2f408430959283f0419c921093e --- /dev/null +++ b/workspace/customer_support/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/workspace/workspace/customer_support/__init__.py b/workspace/workspace/customer_support/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/workspace/customer_support/admin.py b/workspace/workspace/customer_support/admin.py new file mode 100644 index 0000000000000000000000000000000000000000..8c38f3f3dad51e4585f3984282c2a4bec5349c1e --- /dev/null +++ b/workspace/workspace/customer_support/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/workspace/workspace/customer_support/apps.py b/workspace/workspace/customer_support/apps.py new file mode 100644 index 0000000000000000000000000000000000000000..ae5106b9dedbb44b799bd4c0830b4a9fff2b7c68 --- /dev/null +++ b/workspace/workspace/customer_support/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class CustomerSupportConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'customer_support' diff --git a/workspace/workspace/customer_support/migrations/__init__.py b/workspace/workspace/customer_support/migrations/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/workspace/customer_support/models.py b/workspace/workspace/customer_support/models.py new file mode 100644 index 0000000000000000000000000000000000000000..71a836239075aa6e6e4ecb700e9c42c95c022d91 --- /dev/null +++ b/workspace/workspace/customer_support/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/workspace/workspace/customer_support/tests.py b/workspace/workspace/customer_support/tests.py new file mode 100644 index 0000000000000000000000000000000000000000..7ce503c2dd97ba78597f6ff6e4393132753573f6 --- /dev/null +++ b/workspace/workspace/customer_support/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/workspace/workspace/customer_support/views.py b/workspace/workspace/customer_support/views.py new file mode 100644 index 0000000000000000000000000000000000000000..91ea44a218fbd2f408430959283f0419c921093e --- /dev/null +++ b/workspace/workspace/customer_support/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/workspace/workspace/workspace/main.py b/workspace/workspace/workspace/main.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/workspace/workspace/workspace/refasta/core/__init__.py b/workspace/workspace/workspace/workspace/refasta/core/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/workspace/workspace/workspace/refasta/core/admin.py b/workspace/workspace/workspace/workspace/refasta/core/admin.py new file mode 100644 index 0000000000000000000000000000000000000000..8c38f3f3dad51e4585f3984282c2a4bec5349c1e --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/core/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/workspace/workspace/workspace/workspace/refasta/core/apps.py b/workspace/workspace/workspace/workspace/refasta/core/apps.py new file mode 100644 index 0000000000000000000000000000000000000000..8115ae60bc647249211ecbd4bbf6aa65478e9b5c --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/core/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class CoreConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'core' diff --git a/workspace/workspace/workspace/workspace/refasta/core/migrations/__init__.py b/workspace/workspace/workspace/workspace/refasta/core/migrations/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/workspace/workspace/workspace/refasta/core/models.py b/workspace/workspace/workspace/workspace/refasta/core/models.py new file mode 100644 index 0000000000000000000000000000000000000000..71a836239075aa6e6e4ecb700e9c42c95c022d91 --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/core/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/workspace/workspace/workspace/workspace/refasta/core/tests.py b/workspace/workspace/workspace/workspace/refasta/core/tests.py new file mode 100644 index 0000000000000000000000000000000000000000..7ce503c2dd97ba78597f6ff6e4393132753573f6 --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/core/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/workspace/workspace/workspace/workspace/refasta/core/views.py b/workspace/workspace/workspace/workspace/refasta/core/views.py new file mode 100644 index 0000000000000000000000000000000000000000..91ea44a218fbd2f408430959283f0419c921093e --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/core/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/workspace/workspace/workspace/workspace/refasta/manage.py b/workspace/workspace/workspace/workspace/refasta/manage.py new file mode 100755 index 0000000000000000000000000000000000000000..8cb5141f45b14fcd8f2f38671e8b3a8de466d5e5 --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'refasta.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/workspace/workspace/workspace/workspace/refasta/refasta/__init__.py b/workspace/workspace/workspace/workspace/refasta/refasta/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/workspace/workspace/workspace/refasta/refasta/asgi.py b/workspace/workspace/workspace/workspace/refasta/refasta/asgi.py new file mode 100644 index 0000000000000000000000000000000000000000..75fb25b21fbabecdc14668e40763ee33f64f249a --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/refasta/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for refasta project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/5.0/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'refasta.settings') + +application = get_asgi_application() diff --git a/workspace/workspace/workspace/workspace/refasta/refasta/settings.py b/workspace/workspace/workspace/workspace/refasta/refasta/settings.py new file mode 100644 index 0000000000000000000000000000000000000000..444f17be3bad7df0f585b7c0c0413688f49a156f --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/refasta/settings.py @@ -0,0 +1,123 @@ +""" +Django settings for refasta project. + +Generated by 'django-admin startproject' using Django 5.0.4. + +For more information on this file, see +https://docs.djangoproject.com/en/5.0/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/5.0/ref/settings/ +""" + +from pathlib import Path + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure-w!=415@*yeny$6)0v=&)o&2t^lwy3-0us@byd-vdvt1hfm&i&3' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'refasta.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'refasta.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/5.0/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/5.0/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/5.0/howto/static-files/ + +STATIC_URL = 'static/' + +# Default primary key field type +# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/workspace/workspace/workspace/workspace/refasta/refasta/urls.py b/workspace/workspace/workspace/workspace/refasta/refasta/urls.py new file mode 100644 index 0000000000000000000000000000000000000000..29c37319212b7aa3fb65138370f864539b29fddb --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/refasta/urls.py @@ -0,0 +1,22 @@ +""" +URL configuration for refasta project. + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/5.0/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.contrib import admin +from django.urls import path + +urlpatterns = [ + path('admin/', admin.site.urls), +] diff --git a/workspace/workspace/workspace/workspace/refasta/refasta/wsgi.py b/workspace/workspace/workspace/workspace/refasta/refasta/wsgi.py new file mode 100644 index 0000000000000000000000000000000000000000..5ad5b6d4bde791a97a2965481b18a115f713d1a1 --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/refasta/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for refasta project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'refasta.settings') + +application = get_wsgi_application() diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/__init__.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/admin.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/admin.py new file mode 100644 index 0000000000000000000000000000000000000000..8c38f3f3dad51e4585f3984282c2a4bec5349c1e --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/apps.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/apps.py new file mode 100644 index 0000000000000000000000000000000000000000..8115ae60bc647249211ecbd4bbf6aa65478e9b5c --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class CoreConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'core' diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/migrations/__init__.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/migrations/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/models.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/models.py new file mode 100644 index 0000000000000000000000000000000000000000..71a836239075aa6e6e4ecb700e9c42c95c022d91 --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/tests.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/tests.py new file mode 100644 index 0000000000000000000000000000000000000000..7ce503c2dd97ba78597f6ff6e4393132753573f6 --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/views.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/views.py new file mode 100644 index 0000000000000000000000000000000000000000..91ea44a218fbd2f408430959283f0419c921093e --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/core/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/__init__.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/asgi.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/asgi.py new file mode 100644 index 0000000000000000000000000000000000000000..f131cdf63c1b6bd62f50492816d127db0e6b32f2 --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for hobspot_project project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/5.0/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hobspot_project.settings') + +application = get_asgi_application() diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/settings.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/settings.py new file mode 100644 index 0000000000000000000000000000000000000000..157b5fac92dd51dd9be901d38540dc7ff50b9971 --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/settings.py @@ -0,0 +1,123 @@ +""" +Django settings for hobspot_project project. + +Generated by 'django-admin startproject' using Django 5.0.4. + +For more information on this file, see +https://docs.djangoproject.com/en/5.0/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/5.0/ref/settings/ +""" + +from pathlib import Path + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure-=+_9w9l2cqf$_#9i*(hs%tg44se*_ux0)fd8)+7+newk0oswh^' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'hobspot_project.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'hobspot_project.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/5.0/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/5.0/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/5.0/howto/static-files/ + +STATIC_URL = 'static/' + +# Default primary key field type +# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/urls.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/urls.py new file mode 100644 index 0000000000000000000000000000000000000000..154eb8b38972a7961e490a8c4030eb5dc948736b --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/urls.py @@ -0,0 +1,22 @@ +""" +URL configuration for hobspot_project project. + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/5.0/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.contrib import admin +from django.urls import path + +urlpatterns = [ + path('admin/', admin.site.urls), +] diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/wsgi.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/wsgi.py new file mode 100644 index 0000000000000000000000000000000000000000..6064684b8b7b673efd26f9dd9126373cf183b803 --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/hobspot_project/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for hobspot_project project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hobspot_project.settings') + +application = get_wsgi_application() diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/manage.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/manage.py new file mode 100755 index 0000000000000000000000000000000000000000..6887ee4b2b8f3e42b8c18fac9610cfcc1487af4d --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hobspot_project.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/__init__.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/admin.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/admin.py new file mode 100644 index 0000000000000000000000000000000000000000..8c38f3f3dad51e4585f3984282c2a4bec5349c1e --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/apps.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/apps.py new file mode 100644 index 0000000000000000000000000000000000000000..5a2c5df35538a3b4c3efb5ebb5e0ae1fb33bc22a --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class RichmenuConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'richmenu' diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/migrations/__init__.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/migrations/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/models.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/models.py new file mode 100644 index 0000000000000000000000000000000000000000..71a836239075aa6e6e4ecb700e9c42c95c022d91 --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/tests.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/tests.py new file mode 100644 index 0000000000000000000000000000000000000000..7ce503c2dd97ba78597f6ff6e4393132753573f6 --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/views.py b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/views.py new file mode 100644 index 0000000000000000000000000000000000000000..91ea44a218fbd2f408430959283f0419c921093e --- /dev/null +++ b/workspace/workspace/workspace/workspace/refasta/workspace/hobspot_project/workspace/richmenu/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here.