Skip to content

Commit f06ed48

Browse files
committed
feat:修复问题
1 parent c9ebfd0 commit f06ed48

28 files changed

+20
-20
lines changed

Diff for: Blog/__init__.py renamed to AI/__init__.py

File renamed without changes.

Diff for: Blog/settings.py renamed to AI/settings.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
Django settings for Blog project.
2+
Django settings for AI project.
33
4-
Generated by 'django-admin startproject' using Django 2.0.7.
4+
Generated by 'django-admin startproject' using Django 2.1.5.
55
66
For more information on this file, see
77
https://docs.djangoproject.com/en/2.0/topics/settings/
@@ -91,12 +91,12 @@
9191
'django.middleware.clickjacking.XFrameOptionsMiddleware',
9292
]
9393

94-
ROOT_URLCONF = 'Blog.urls'
94+
ROOT_URLCONF = 'AI.urls'
9595

9696
TEMPLATES = [
9797
{
9898
'BACKEND': 'django.template.backends.django.DjangoTemplates',
99-
# 'DIRS': ['Blog/templates'],
99+
# 'DIRS': ['AI/templates'],
100100
'DIRS': [os.path.join(BASE_DIR, 'templates')],
101101
'APP_DIRS': True,
102102
'OPTIONS': {
@@ -112,7 +112,7 @@
112112
},
113113
]
114114

115-
WSGI_APPLICATION = 'Blog.wsgi.application'
115+
WSGI_APPLICATION = 'AI.wsgi.application'
116116

117117

118118
# Database
@@ -162,7 +162,7 @@
162162
# Static files (CSS, JavaScript, Images)
163163
# https://docs.djangoproject.com/en/2.0/howto/static-files/
164164
STATICFILES_DIRS = [
165-
os.path.join(BASE_DIR, 'Blog/static/'),
165+
os.path.join(BASE_DIR, 'AI/static/'),
166166
]
167167

168168
STATIC_URL = '/static/'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: Blog/urls.py renamed to AI/urls.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Blog URL Configuration
1+
"""AI URL Configuration
22
33
The `urlpatterns` list routes URLs to views. For more information please see:
44
https://docs.djangoproject.com/en/2.0/topics/http/urls/
@@ -28,7 +28,7 @@
2828
from apps.gesture.views import *
2929
from apps.identification.views import *
3030
from apps.tenc_ai.views import *
31-
import Blog.views
31+
import AI.views
3232

3333
urlpatterns = [
3434
path(r'admin/', admin.site.urls),
@@ -58,5 +58,5 @@
5858
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT,) + static(settings.STATIC_URL,
5959
document_root=settings.STATIC_ROOT)
6060

61-
handler404 = Blog.views.page_not_found
62-
handler500 = Blog.views.page_error
61+
handler404 = AI.views.page_not_found
62+
handler500 = AI.views.page_error

Diff for: Blog/views.py renamed to AI/views.py

File renamed without changes.

Diff for: Blog/wsgi.py renamed to AI/wsgi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
WSGI config for Blog project.
2+
WSGI config for AI project.
33
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
@@ -11,6 +11,6 @@
1111

1212
from django.core.wsgi import get_wsgi_application
1313

14-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Blog.settings")
14+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "AI.settings")
1515

1616
application = get_wsgi_application()

Diff for: apps/bank_card/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django.shortcuts import render
22
from django.http import HttpResponse
33
import requests
4-
import Blog.settings as config
4+
import AI.settings as config
55

66

77
# Create your views here.

Diff for: apps/blogs/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Blog URL Configuration
1+
"""AI URL Configuration
22
33
The `urlpatterns` list routes URLs to views. For more information please see:
44
https://docs.djangoproject.com/en/2.0/topics/http/urls/

Diff for: apps/face_comparison/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django.shortcuts import render
22
from django.http import HttpResponse
33
import requests
4-
import Blog.settings as config
4+
import AI.settings as config
55

66

77
# Create your views here.

Diff for: apps/gesture/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django.shortcuts import render
22
from django.http import HttpResponse
33
import requests
4-
import Blog.settings as config
4+
import AI.settings as config
55

66

77
# Create your views here.

Diff for: apps/identification/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Blog URL Configuration
1+
"""AI URL Configuration
22
33
The `urlpatterns` list routes URLs to views. For more information please see:
44
https://docs.djangoproject.com/en/2.0/topics/http/urls/

Diff for: apps/tenc_ai/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django.shortcuts import render
22
from django.http import HttpResponse
33
import requests
4-
import Blog.settings as config
4+
import AI.settings as config
55
import hashlib
66
import time
77
import random

Diff for: manage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44

55
if __name__ == "__main__":
6-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Blog.settings")
6+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "AI.settings")
77
try:
88
from django.core.management import execute_from_command_line
99
except ImportError as exc:

Diff for: requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Keras>=2.2.2
2727
Keras-Applications>=1.0.4
2828
Keras-Preprocessing>=1.0.2
2929
h5py>=2.8.0
30-
numpy
30+
numpy==1.16.4
3131
selenium
3232

3333

0 commit comments

Comments
 (0)