diff --git "a/\346\216\245\345\217\243\346\226\207\346\241\243.md" b/API.md similarity index 97% rename from "\346\216\245\345\217\243\346\226\207\346\241\243.md" rename to API.md index 279fc2d..124b125 100644 --- "a/\346\216\245\345\217\243\346\226\207\346\241\243.md" +++ b/API.md @@ -1,4 +1,4 @@ -## APP相关接口 +## 1. APP相关接口 #### 上传版本文件 - Curl diff --git a/README.EN.md b/README.EN.md index b9d2659..d9e2419 100644 --- a/README.EN.md +++ b/README.EN.md @@ -10,7 +10,7 @@ # Hyacinth Hyacinth is a lightweight, free APP package internal testing platform, and supports virus scanning, security reinforcement and other functions. The open API can help you build into the CI/CD process, and the beautiful UI and convenient installation method can better distribute the internal testing package to the team. - + ## Initialization ``` diff --git a/README.md b/README.md index 8de797e..4fdc99e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ ## 风信子 风信子是一个轻量、免费的APP包内测平台,并且支持病毒扫描、安全加固等功能。开放式API可以有助你构建到CI/CD流程中,美观的UI、便捷的安装方式可以更好的给团队内部分发内测包。 - + ## 初始化 ``` diff --git a/hyacinth/settings.py b/hyacinth/settings.py index e85392c..15bae73 100644 --- a/hyacinth/settings.py +++ b/hyacinth/settings.py @@ -24,7 +24,7 @@ SECRET_KEY = 'django-insecure-kbnw%$@c503l6yieh=^n9_@hvin0zm$%h-y1=1qps*h)7qucbm' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = ['*'] @@ -156,6 +156,8 @@ STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') + + # Default primary key field type # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field diff --git a/hyacinth/urls.py b/hyacinth/urls.py index e0dfd88..850bacd 100644 --- a/hyacinth/urls.py +++ b/hyacinth/urls.py @@ -18,10 +18,14 @@ from django.views import static from django.conf import settings from django.urls import re_path as url +from hysite.views import error + +handler404 = error.Error.error_404_page +handler500 = error.Error.error_500_page urlpatterns = [ path('admin/', admin.site.urls), path('', include('hysite.urls')), path('', include('social_django.urls', namespace='social')), - url(r'^static/(?P.*)$', static.serve,{'document_root': settings.STATIC_ROOT}, name='static'), + url(r'^static/(?P.*)$', static.serve, {'document_root': settings.STATIC_ROOT}, name='static'), ] diff --git a/hysite/static/image/404.png b/hysite/static/image/404.png new file mode 100644 index 0000000..b88ff2c Binary files /dev/null and b/hysite/static/image/404.png differ diff --git a/hysite/static/image/500.png b/hysite/static/image/500.png new file mode 100644 index 0000000..06d1fe7 Binary files /dev/null and b/hysite/static/image/500.png differ diff --git a/hysite/static/image/app.png b/hysite/static/image/app.png index 8d04876..2c3e7a7 100644 Binary files a/hysite/static/image/app.png and b/hysite/static/image/app.png differ diff --git a/hysite/templates/404.html b/hysite/templates/404.html new file mode 100644 index 0000000..71ccef3 --- /dev/null +++ b/hysite/templates/404.html @@ -0,0 +1,24 @@ + + + + + + + 404 - 风信子 + + + + + + + + + \ No newline at end of file diff --git a/hysite/templates/500.html b/hysite/templates/500.html new file mode 100644 index 0000000..79bd147 --- /dev/null +++ b/hysite/templates/500.html @@ -0,0 +1,24 @@ + + + + + + + 500 - 风信子 + + + + + + + + + \ No newline at end of file diff --git a/hysite/templates/package-list.html b/hysite/templates/package-list.html index d403071..ceb6271 100644 --- a/hysite/templates/package-list.html +++ b/hysite/templates/package-list.html @@ -9,8 +9,13 @@ {% block ms-auto %} {% endblock %} @@ -37,13 +42,13 @@

Build Num #{{ package_file.build_num }}

- + 分享 @@ -55,7 +60,7 @@

Build Num #{{ package_file.build_num }}

- + @@ -98,7 +103,7 @@

Build Num #{{ package_file.build_num }}

-

该应用没有版本记录

+

该版本没有文件记录

{% endif %}