From f06ed48775d1a4bcf9712b5ae3cd586c9a3e189c Mon Sep 17 00:00:00 2001 From: Ziran Gong Date: Sat, 23 Nov 2019 11:27:48 -0500 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {Blog => AI}/__init__.py | 0 {Blog => AI}/settings.py | 12 ++++++------ {Blog => AI}/static/css/style.css | 0 {Blog => AI}/static/favicon.ico | Bin {Blog => AI}/static/images/bg.png | Bin {Blog => AI}/static/images/bg1.png | Bin {Blog => AI}/static/images/error-img.png | Bin {Blog => AI}/static/images/error-page.png | Bin {Blog => AI}/static/images/g.png | Bin {Blog => AI}/static/images/gzr-youlang.png | Bin {Blog => AI}/static/images/logo0.png | Bin {Blog => AI}/static/images/mountain.jpg | Bin {Blog => AI}/static/images/r.png | Bin {Blog => AI}/static/images/slide1.gif | Bin {Blog => AI}/static/images/slide2.png | Bin {Blog => AI}/static/images/slide3.png | Bin {Blog => AI}/static/sign.svg | 0 {Blog => AI}/urls.py | 8 ++++---- {Blog => AI}/views.py | 0 {Blog => AI}/wsgi.py | 4 ++-- apps/bank_card/views.py | 2 +- apps/blogs/urls.py | 2 +- apps/face_comparison/views.py | 2 +- apps/gesture/views.py | 2 +- apps/identification/urls.py | 2 +- apps/tenc_ai/views.py | 2 +- manage.py | 2 +- requirements.txt | 2 +- 28 files changed, 20 insertions(+), 20 deletions(-) rename {Blog => AI}/__init__.py (100%) rename {Blog => AI}/settings.py (94%) rename {Blog => AI}/static/css/style.css (100%) rename {Blog => AI}/static/favicon.ico (100%) rename {Blog => AI}/static/images/bg.png (100%) rename {Blog => AI}/static/images/bg1.png (100%) rename {Blog => AI}/static/images/error-img.png (100%) rename {Blog => AI}/static/images/error-page.png (100%) rename {Blog => AI}/static/images/g.png (100%) rename {Blog => AI}/static/images/gzr-youlang.png (100%) rename {Blog => AI}/static/images/logo0.png (100%) rename {Blog => AI}/static/images/mountain.jpg (100%) rename {Blog => AI}/static/images/r.png (100%) rename {Blog => AI}/static/images/slide1.gif (100%) rename {Blog => AI}/static/images/slide2.png (100%) rename {Blog => AI}/static/images/slide3.png (100%) rename {Blog => AI}/static/sign.svg (100%) rename {Blog => AI}/urls.py (95%) rename {Blog => AI}/views.py (100%) rename {Blog => AI}/wsgi.py (75%) diff --git a/Blog/__init__.py b/AI/__init__.py similarity index 100% rename from Blog/__init__.py rename to AI/__init__.py diff --git a/Blog/settings.py b/AI/settings.py similarity index 94% rename from Blog/settings.py rename to AI/settings.py index ce676d0..cfaaab2 100644 --- a/Blog/settings.py +++ b/AI/settings.py @@ -1,7 +1,7 @@ """ -Django settings for Blog project. +Django settings for AI project. -Generated by 'django-admin startproject' using Django 2.0.7. +Generated by 'django-admin startproject' using Django 2.1.5. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ @@ -91,12 +91,12 @@ 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] -ROOT_URLCONF = 'Blog.urls' +ROOT_URLCONF = 'AI.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - # 'DIRS': ['Blog/templates'], + # 'DIRS': ['AI/templates'], 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTIONS': { @@ -112,7 +112,7 @@ }, ] -WSGI_APPLICATION = 'Blog.wsgi.application' +WSGI_APPLICATION = 'AI.wsgi.application' # Database @@ -162,7 +162,7 @@ # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.0/howto/static-files/ STATICFILES_DIRS = [ - os.path.join(BASE_DIR, 'Blog/static/'), + os.path.join(BASE_DIR, 'AI/static/'), ] STATIC_URL = '/static/' diff --git a/Blog/static/css/style.css b/AI/static/css/style.css similarity index 100% rename from Blog/static/css/style.css rename to AI/static/css/style.css diff --git a/Blog/static/favicon.ico b/AI/static/favicon.ico similarity index 100% rename from Blog/static/favicon.ico rename to AI/static/favicon.ico diff --git a/Blog/static/images/bg.png b/AI/static/images/bg.png similarity index 100% rename from Blog/static/images/bg.png rename to AI/static/images/bg.png diff --git a/Blog/static/images/bg1.png b/AI/static/images/bg1.png similarity index 100% rename from Blog/static/images/bg1.png rename to AI/static/images/bg1.png diff --git a/Blog/static/images/error-img.png b/AI/static/images/error-img.png similarity index 100% rename from Blog/static/images/error-img.png rename to AI/static/images/error-img.png diff --git a/Blog/static/images/error-page.png b/AI/static/images/error-page.png similarity index 100% rename from Blog/static/images/error-page.png rename to AI/static/images/error-page.png diff --git a/Blog/static/images/g.png b/AI/static/images/g.png similarity index 100% rename from Blog/static/images/g.png rename to AI/static/images/g.png diff --git a/Blog/static/images/gzr-youlang.png b/AI/static/images/gzr-youlang.png similarity index 100% rename from Blog/static/images/gzr-youlang.png rename to AI/static/images/gzr-youlang.png diff --git a/Blog/static/images/logo0.png b/AI/static/images/logo0.png similarity index 100% rename from Blog/static/images/logo0.png rename to AI/static/images/logo0.png diff --git a/Blog/static/images/mountain.jpg b/AI/static/images/mountain.jpg similarity index 100% rename from Blog/static/images/mountain.jpg rename to AI/static/images/mountain.jpg diff --git a/Blog/static/images/r.png b/AI/static/images/r.png similarity index 100% rename from Blog/static/images/r.png rename to AI/static/images/r.png diff --git a/Blog/static/images/slide1.gif b/AI/static/images/slide1.gif similarity index 100% rename from Blog/static/images/slide1.gif rename to AI/static/images/slide1.gif diff --git a/Blog/static/images/slide2.png b/AI/static/images/slide2.png similarity index 100% rename from Blog/static/images/slide2.png rename to AI/static/images/slide2.png diff --git a/Blog/static/images/slide3.png b/AI/static/images/slide3.png similarity index 100% rename from Blog/static/images/slide3.png rename to AI/static/images/slide3.png diff --git a/Blog/static/sign.svg b/AI/static/sign.svg similarity index 100% rename from Blog/static/sign.svg rename to AI/static/sign.svg diff --git a/Blog/urls.py b/AI/urls.py similarity index 95% rename from Blog/urls.py rename to AI/urls.py index 3a1e245..72ceca2 100644 --- a/Blog/urls.py +++ b/AI/urls.py @@ -1,4 +1,4 @@ -"""Blog URL Configuration +"""AI URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ @@ -28,7 +28,7 @@ from apps.gesture.views import * from apps.identification.views import * from apps.tenc_ai.views import * -import Blog.views +import AI.views urlpatterns = [ path(r'admin/', admin.site.urls), @@ -58,5 +58,5 @@ ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT,) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) -handler404 = Blog.views.page_not_found -handler500 = Blog.views.page_error +handler404 = AI.views.page_not_found +handler500 = AI.views.page_error diff --git a/Blog/views.py b/AI/views.py similarity index 100% rename from Blog/views.py rename to AI/views.py diff --git a/Blog/wsgi.py b/AI/wsgi.py similarity index 75% rename from Blog/wsgi.py rename to AI/wsgi.py index 70ccd22..c227522 100644 --- a/Blog/wsgi.py +++ b/AI/wsgi.py @@ -1,5 +1,5 @@ """ -WSGI config for Blog project. +WSGI config for AI project. It exposes the WSGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ from django.core.wsgi import get_wsgi_application -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Blog.settings") +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "AI.settings") application = get_wsgi_application() diff --git a/apps/bank_card/views.py b/apps/bank_card/views.py index 9282325..97c0a7c 100644 --- a/apps/bank_card/views.py +++ b/apps/bank_card/views.py @@ -1,7 +1,7 @@ from django.shortcuts import render from django.http import HttpResponse import requests -import Blog.settings as config +import AI.settings as config # Create your views here. diff --git a/apps/blogs/urls.py b/apps/blogs/urls.py index 0f84482..59b9ed2 100644 --- a/apps/blogs/urls.py +++ b/apps/blogs/urls.py @@ -1,4 +1,4 @@ -"""Blog URL Configuration +"""AI URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ diff --git a/apps/face_comparison/views.py b/apps/face_comparison/views.py index ad646cc..ae48814 100755 --- a/apps/face_comparison/views.py +++ b/apps/face_comparison/views.py @@ -1,7 +1,7 @@ from django.shortcuts import render from django.http import HttpResponse import requests -import Blog.settings as config +import AI.settings as config # Create your views here. diff --git a/apps/gesture/views.py b/apps/gesture/views.py index 547c7fd..e7bd2ff 100644 --- a/apps/gesture/views.py +++ b/apps/gesture/views.py @@ -1,7 +1,7 @@ from django.shortcuts import render from django.http import HttpResponse import requests -import Blog.settings as config +import AI.settings as config # Create your views here. diff --git a/apps/identification/urls.py b/apps/identification/urls.py index 81492f2..7208c9a 100644 --- a/apps/identification/urls.py +++ b/apps/identification/urls.py @@ -1,4 +1,4 @@ -"""Blog URL Configuration +"""AI URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ diff --git a/apps/tenc_ai/views.py b/apps/tenc_ai/views.py index 11097ed..3d1001e 100644 --- a/apps/tenc_ai/views.py +++ b/apps/tenc_ai/views.py @@ -1,7 +1,7 @@ from django.shortcuts import render from django.http import HttpResponse import requests -import Blog.settings as config +import AI.settings as config import hashlib import time import random diff --git a/manage.py b/manage.py index 6671c54..3c01156 100644 --- a/manage.py +++ b/manage.py @@ -3,7 +3,7 @@ import sys if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Blog.settings") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "AI.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: diff --git a/requirements.txt b/requirements.txt index eafae61..2e64fb8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -27,7 +27,7 @@ Keras>=2.2.2 Keras-Applications>=1.0.4 Keras-Preprocessing>=1.0.2 h5py>=2.8.0 -numpy +numpy==1.16.4 selenium