Skip to content

Commit

Permalink
feat:修复问题
Browse files Browse the repository at this point in the history
  • Loading branch information
nature1995 committed Nov 23, 2019
1 parent c9ebfd0 commit f06ed48
Show file tree
Hide file tree
Showing 28 changed files with 20 additions and 20 deletions.
File renamed without changes.
12 changes: 6 additions & 6 deletions Blog/settings.py → 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/
Expand Down Expand Up @@ -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': {
Expand All @@ -112,7 +112,7 @@
},
]

WSGI_APPLICATION = 'Blog.wsgi.application'
WSGI_APPLICATION = 'AI.wsgi.application'


# Database
Expand Down Expand Up @@ -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/'
Expand Down
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
8 changes: 4 additions & 4 deletions Blog/urls.py → 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/
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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
File renamed without changes.
4 changes: 2 additions & 2 deletions Blog/wsgi.py → 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``.
Expand All @@ -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()
2 changes: 1 addition & 1 deletion 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.
Expand Down
2 changes: 1 addition & 1 deletion 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/
Expand Down
2 changes: 1 addition & 1 deletion 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.
Expand Down
2 changes: 1 addition & 1 deletion 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.
Expand Down
2 changes: 1 addition & 1 deletion 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/
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion manage.py
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -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


0 comments on commit f06ed48

Please sign in to comment.